#5E39CD#5E39CD

#5E39CD is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.3% C 0.213 H 286.9°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#5E39CD
RGBrgb(94, 57, 205)
HSLhsl(255, 60%, 51%)
HSVhsv(255, 72%, 80%)
CMYKcmyk(54.1%, 72.2%, 0%, 19.6%)
CIE-LABlab(37.32, 52.40, -70.86)
CIE-LCHlch(37.32, 88.13, 306.48°)
OKLaboklab(48.28% 0.0619 -0.2038)
OKLCHoklch(48.28% 0.213 286.9)
XYZxyz(17.0954, 9.7128, 58.7197)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39CD #A8CD39
analogous
#395ECD #5E39CD #A839CD
triadic
#5E39CD #CD5E39 #39CD5E
tetradic
#5E39CD #CD395E #A8CD39 #39CDA8
square
#5E39CD #CD395E #A8CD39 #39CDA8
split-complementary
#5E39CD #CDA839 #5ECD39
monochromatic
#311C6F #4628A0 #5E39CD #866AD9 #AD9BE6

Accessibility & contrast

On white

7.14
#5E39CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5E39CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39CD
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39CD#FFFFFF#000000##FFFFFF
##5E39CD1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD1
Deuteranopia (green-blind)
#0054CA
Tritanopia (blue-blind)
#2F6180
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e39cd;
/* rgb */ color: rgb(94, 57, 205);
/* oklch */ color: oklch(48.3% 0.213 286.9);
Tailwind
colors: {
  custom: {
    50: '#9773dd',
    500: '#5e39cd',
    950: '#000000',
  },
}
SCSS
$custom: #5e39cd;
$custom-light: #9773dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39cd",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 205
  },
  "hsl": {
    "h": 255,
    "s": 59.677,
    "l": 51.373
  },
  "oklch": {
    "l": 0.48281,
    "c": 0.213,
    "h": 286.9
  },
  "luminance": 0.09714
}

Semantic roles & 50–950 ramp

primary
#5E39CD
secondary
#C1D290
accent
#E345BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E39CD

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

Preview Lab → · Contrast checker → · Palette generator →

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