#5B42CE#5B42CE

#5B42CE is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 49.3% C 0.205 H 284.2°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#5B42CE
RGBrgb(91, 66, 206)
HSLhsl(251, 59%, 53%)
HSVhsv(251, 68%, 81%)
CMYKcmyk(55.8%, 68%, 0%, 19.2%)
CIE-LABlab(38.86, 47.45, -68.94)
CIE-LCHlch(38.86, 83.69, 304.54°)
OKLaboklab(49.34% 0.0501 -0.1983)
OKLCHoklch(49.34% 0.205 284.2)
XYZxyz(17.3998, 10.5758, 59.5050)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B42CE #B5CE42
analogous
#426FCE #5B42CE #A142CE
triadic
#5B42CE #CE5B42 #42CE5B
tetradic
#5B42CE #CE426F #B5CE42 #42CEA1
square
#5B42CE #CE426F #B5CE42 #42CEA1
split-complementary
#5B42CE #CEA142 #6FCE42
monochromatic
#2F1F77 #422BA7 #5B42CE #8573DB #AFA3E7

Accessibility & contrast

On white

6.74
#5B42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5B42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B42CE
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B42CE#FFFFFF#000000##FFFFFF
##5B42CE1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0057CB
Tritanopia (blue-blind)
#236683
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5b42ce;
/* rgb */ color: rgb(91, 66, 206);
/* oklch */ color: oklch(49.3% 0.205 284.2);
Tailwind
colors: {
  custom: {
    50: '#9578de',
    500: '#5b42ce',
    950: '#000000',
  },
}
SCSS
$custom: #5b42ce;
$custom-light: #9578de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b42ce",
  "rgb": {
    "r": 91,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 250.714,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.49335,
    "c": 0.20452,
    "h": 284.2
  },
  "luminance": 0.10577
}

Semantic roles & 50–950 ramp

primary
#5B42CE
secondary
#C9D498
accent
#E246C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5B42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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