#5B39CE#5B39CE

#5B39CE is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.1% C 0.214 H 285.5°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#5B39CE
RGBrgb(91, 57, 206)
HSLhsl(254, 60%, 52%)
HSVhsv(254, 72%, 81%)
CMYKcmyk(55.8%, 72.3%, 0%, 19.2%)
CIE-LABlab(37.13, 52.25, -71.77)
CIE-LCHlch(37.13, 88.78, 306.06°)
OKLaboklab(48.1% 0.0574 -0.2066)
OKLCHoklch(48.1% 0.214 285.5)
XYZxyz(16.9147, 9.6057, 59.3433)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B39CE #ACCE39
analogous
#3962CE #5B39CE #A639CE
triadic
#5B39CE #CE5B39 #39CE5B
tetradic
#5B39CE #CE3962 #ACCE39 #39CEA6
square
#5B39CE #CE3962 #ACCE39 #39CEA6
split-complementary
#5B39CE #CEA639 #62CE39
monochromatic
#2F1C71 #4428A2 #5B39CE #846ADA #AC9BE6

Accessibility & contrast

On white

7.19
#5B39CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B39CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B39CE
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B39CE#FFFFFF#000000##FFFFFF
##5B39CE1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD2
Deuteranopia (green-blind)
#0053CB
Tritanopia (blue-blind)
#246280
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b39ce;
/* rgb */ color: rgb(91, 57, 206);
/* oklch */ color: oklch(48.1% 0.214 285.5);
Tailwind
colors: {
  custom: {
    50: '#9573de',
    500: '#5b39ce',
    950: '#000000',
  },
}
SCSS
$custom: #5b39ce;
$custom-light: #9573de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b39ce",
  "rgb": {
    "r": 91,
    "g": 57,
    "b": 206
  },
  "hsl": {
    "h": 253.691,
    "s": 60.324,
    "l": 51.569
  },
  "oklch": {
    "l": 0.481,
    "c": 0.21441,
    "h": 285.5
  },
  "luminance": 0.09607
}

Semantic roles & 50–950 ramp

primary
#5B39CE
secondary
#C3D291
accent
#E344BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B39CE

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#5B39CE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva