#5E42CB#5E42CB

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

Color values

HEX#5E42CB
RGBrgb(94, 66, 203)
HSLhsl(252, 57%, 53%)
HSVhsv(252, 67%, 80%)
CMYKcmyk(53.7%, 67.5%, 0%, 20.4%)
CIE-LABlab(38.88, 47.05, -67.16)
CIE-LCHlch(38.88, 82.00, 305.01°)
OKLaboklab(49.34% 0.0547 -0.193)
OKLCHoklch(49.34% 0.201 285.8)
XYZxyz(17.3406, 10.5870, 57.6181)
Luminance0.1059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42CB #AFCB42
analogous
#426ACB #5E42CB #A342CB
triadic
#5E42CB #CB5E42 #42CB5E
tetradic
#5E42CB #CB426A #AFCB42 #42CBA3
square
#5E42CB #CB426A #AFCB42 #42CBA3
split-complementary
#5E42CB #CBA342 #6ACB42
monochromatic
#312073 #452DA3 #5E42CB #8772D8 #B0A2E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5E42CB#FFFFFF#000000##FFFFFF
##5E42CB1.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)
#005FCF
Deuteranopia (green-blind)
#0057C8
Tritanopia (blue-blind)
#306581
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e42cb;
/* rgb */ color: rgb(94, 66, 203);
/* oklch */ color: oklch(49.3% 0.201 285.8);
Tailwind
colors: {
  custom: {
    50: '#9678dc',
    500: '#5e42cb',
    950: '#000000',
  },
}
SCSS
$custom: #5e42cb;
$custom-light: #9678dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42cb",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 203
  },
  "hsl": {
    "h": 252.263,
    "s": 56.846,
    "l": 52.745
  },
  "oklch": {
    "l": 0.49337,
    "c": 0.20056,
    "h": 285.8
  },
  "luminance": 0.10588
}

Semantic roles & 50–950 ramp

primary
#5E42CB
secondary
#C6D297
accent
#E048C1
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5E42CB

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

Preview Lab → · Contrast checker → · Palette generator →

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