#5E42D2#5E42D2

#5E42D2 is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 49.9% C 0.209 H 284.8°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#5E42D2
RGBrgb(94, 66, 210)
HSLhsl(252, 62%, 54%)
HSVhsv(252, 69%, 82%)
CMYKcmyk(55.2%, 68.6%, 0%, 17.6%)
CIE-LABlab(39.46, 49.11, -70.25)
CIE-LCHlch(39.46, 85.71, 304.96°)
OKLaboklab(49.94% 0.0536 -0.202)
OKLCHoklch(49.94% 0.209 284.8)
XYZxyz(18.1936, 10.9282, 62.1109)
Luminance0.1093 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42D2 #B6D242
analogous
#426ED2 #5E42D2 #A642D2
triadic
#5E42D2 #D25E42 #42D25E
tetradic
#5E42D2 #D2426E #B6D242 #42D2A6
square
#5E42D2 #D2426E #B6D242 #42D2A6
split-complementary
#5E42D2 #D2A642 #6ED242
monochromatic
#301E7C #4329AD #5E42D2 #8873DE #B2A5EA

Accessibility & contrast

On white

6.59
#5E42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5E42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42D2
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42D2#FFFFFF#000000##FFFFFF
##5E42D21.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D6
Deuteranopia (green-blind)
#0058CF
Tritanopia (blue-blind)
#286885
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5e42d2;
/* rgb */ color: rgb(94, 66, 210);
/* oklch */ color: oklch(49.9% 0.209 284.8);
Tailwind
colors: {
  custom: {
    50: '#9779e1',
    500: '#5e42d2',
    950: '#000000',
  },
}
SCSS
$custom: #5e42d2;
$custom-light: #9779e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42d2",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 251.667,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.49936,
    "c": 0.20903,
    "h": 284.8
  },
  "luminance": 0.10929
}

Semantic roles & 50–950 ramp

primary
#5E42D2
secondary
#CBD799
accent
#E543C5
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5E42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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