#5E39C6#5E39C6

#5E39C6 is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.7% C 0.205 H 288.0°. Best body text is #FFFFFF at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#5E39C6
RGBrgb(94, 57, 198)
HSLhsl(256, 55%, 50%)
HSVhsv(256, 71%, 78%)
CMYKcmyk(52.5%, 71.2%, 0%, 22.4%)
CIE-LABlab(36.71, 50.42, -67.79)
CIE-LCHlch(36.71, 84.48, 306.64°)
OKLaboklab(47.66% 0.0634 -0.1948)
OKLCHoklch(47.66% 0.205 288)
XYZxyz(16.2693, 9.3824, 54.3689)
Luminance0.0938 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39C6 #A1C639
analogous
#395AC6 #5E39C6 #A539C6
triadic
#5E39C6 #C65E39 #39C65E
tetradic
#5E39C6 #C6395A #A1C639 #39C6A5
square
#5E39C6 #C6395A #A1C639 #39C6A5
split-complementary
#5E39C6 #C6A539 #5AC639
monochromatic
#311E67 #472B96 #5E39C6 #8569D4 #AB98E1

Accessibility & contrast

On white

7.30
#5E39C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5E39C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39C6
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39C6#FFFFFF#000000##FFFFFF
##5E39C61.007.302.887.30
#FFFFFF7.301.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CA
Deuteranopia (green-blind)
#0053C3
Tritanopia (blue-blind)
#365E7C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5e39c6;
/* rgb */ color: rgb(94, 57, 198);
/* oklch */ color: oklch(47.7% 0.205 288.0);
Tailwind
colors: {
  custom: {
    50: '#9673d8',
    500: '#5e39c6',
    950: '#000000',
  },
}
SCSS
$custom: #5e39c6;
$custom-light: #9673d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39c6",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 198
  },
  "hsl": {
    "h": 255.745,
    "s": 55.294,
    "l": 50
  },
  "oklch": {
    "l": 0.4766,
    "c": 0.20487,
    "h": 288
  },
  "luminance": 0.09383
}

Semantic roles & 50–950 ramp

primary
#5E39C6
secondary
#BCCD8E
accent
#DF49B7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5E39C6

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

Preview Lab → · Contrast checker → · Palette generator →

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