#5E42D7#5E42D7

#5E42D7 is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.215 H 284.2°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#5E42D7
RGBrgb(94, 66, 215)
HSLhsl(251, 65%, 55%)
HSVhsv(251, 69%, 84%)
CMYKcmyk(56.3%, 69.3%, 0%, 15.7%)
CIE-LABlab(39.88, 50.58, -72.43)
CIE-LCHlch(39.88, 88.34, 304.93°)
OKLaboklab(50.37% 0.0527 -0.2084)
OKLCHoklch(50.37% 0.215 284.2)
XYZxyz(18.8263, 11.1813, 65.4430)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42D7 #BBD742
analogous
#4271D7 #5E42D7 #A842D7
triadic
#5E42D7 #D75E42 #42D75E
tetradic
#5E42D7 #D74271 #BBD742 #42D7A8
square
#5E42D7 #D74271 #BBD742 #42D7A8
split-complementary
#5E42D7 #D7A842 #71D742
monochromatic
#2F1C83 #4126B5 #5E42D7 #8975E2 #B4A7EC

Accessibility & contrast

On white

6.49
#5E42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5E42D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42D7
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42D7#FFFFFF#000000##FFFFFF
##5E42D71.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062DB
Deuteranopia (green-blind)
#0059D4
Tritanopia (blue-blind)
#216988
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5e42d7;
/* rgb */ color: rgb(94, 66, 215);
/* oklch */ color: oklch(50.4% 0.215 284.2);
Tailwind
colors: {
  custom: {
    50: '#9879e4',
    500: '#5e42d7',
    950: '#000000',
  },
}
SCSS
$custom: #5e42d7;
$custom-light: #9879e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42d7",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 251.275,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.5037,
    "c": 0.21501,
    "h": 284.2
  },
  "luminance": 0.11182
}

Semantic roles & 50–950 ramp

primary
#5E42D7
secondary
#CEDA9B
accent
#E840C8
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5E42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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