Skip to content
Tools

Color Converter

Convert HEX, RGB, HSL, OKLCH, and other color formats.

Processed locally in your browser. Nothing you enter is uploaded.

  • HEX

    #8b5cf6

  • RGB

    rgb(139, 92, 246)

  • HSL

    hsl(258 89.5% 66.3%)

  • HSV / HSB

    hsv(258.312 62.602% 96.471%)

    HSV and HSB are the same model. This is not a CSS color function.

  • HWB

    hwb(258 36.1% 3.53%)

  • Lab

    lab(50.7% 45.9 -71.8)

  • LCH

    lch(50.7% 85.2 303)

  • OKLab

    oklab(60.6% 0.085 -0.202)

  • OKLCH

    oklch(60.6% 0.219 293)

  • color(srgb)

    rgb(54.5% 36.1% 96.5%)

  • Display P3

    color(display-p3 0.518 0.369 0.932)

  • XYZ D65

    color(xyz-d65 0.311 0.198 0.894)

  • CMYK

    cmyk(43% 63% 0% 4%)

    Unprofiled approximation from sRGB. Not print-accurate.

  • Integer

    0x8b5cf6 (9133302)

  • Android ARGB

    0xff8b5cf6

  • Flutter

    Color(0xFF8B5CF6)

  • Swift UIColor

    UIColor(red: 0.545, green: 0.361, blue: 0.965, alpha: 1)

  • CSS variable

    --color: #8b5cf6;

  • Tailwind arbitrary

    bg-[#8b5cf6]

Limitations

  • Wide-gamut colors are mapped into sRGB for HEX and RGB. CMYK is an unprofiled approximation.

Related tools