#5E42CF#5E42CF

#5E42CF is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 49.7% C 0.205 H 285.3°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#5E42CF
RGBrgb(94, 66, 207)
HSLhsl(252, 59%, 54%)
HSVhsv(252, 68%, 81%)
CMYKcmyk(54.6%, 68.1%, 0%, 18.8%)
CIE-LABlab(39.21, 48.23, -68.93)
CIE-LCHlch(39.21, 84.13, 304.98°)
OKLaboklab(49.68% 0.054 -0.1982)
OKLCHoklch(49.68% 0.205 285.3)
XYZxyz(17.8234, 10.7801, 60.1610)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E42CF #B3CF42
analogous
#426CCF #5E42CF #A442CF
triadic
#5E42CF #CF5E42 #42CF5E
tetradic
#5E42CF #CF426C #B3CF42 #42CFA4
square
#5E42CF #CF426C #B3CF42 #42CFA4
split-complementary
#5E42CF #CFA442 #6CCF42
monochromatic
#301F78 #442BA9 #5E42CF #8873DB #B1A4E8

Accessibility & contrast

On white

6.65
#5E42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#5E42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E42CF
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E42CF#FFFFFF#000000##FFFFFF
##5E42CF1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D3
Deuteranopia (green-blind)
#0058CC
Tritanopia (blue-blind)
#2C6683
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5e42cf;
/* rgb */ color: rgb(94, 66, 207);
/* oklch */ color: oklch(49.7% 0.205 285.3);
Tailwind
colors: {
  custom: {
    50: '#9679df',
    500: '#5e42cf',
    950: '#000000',
  },
}
SCSS
$custom: #5e42cf;
$custom-light: #9679df;
$custom-dark: #000000;
JSON
{
  "hex": "#5e42cf",
  "rgb": {
    "r": 94,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 251.915,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.49678,
    "c": 0.20542,
    "h": 285.3
  },
  "luminance": 0.10781
}

Semantic roles & 50–950 ramp

primary
#5E42CF
secondary
#C9D598
accent
#E345C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5E42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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