#5E39CA#5E39CA

#5E39CA is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.0% C 0.210 H 287.4°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#5E39CA
RGBrgb(94, 57, 202)
HSLhsl(255, 58%, 51%)
HSVhsv(255, 72%, 79%)
CMYKcmyk(53.5%, 71.8%, 0%, 20.8%)
CIE-LABlab(37.06, 51.55, -69.55)
CIE-LCHlch(37.06, 86.57, 306.55°)
OKLaboklab(48.01% 0.0626 -0.2)
OKLCHoklch(48.01% 0.21 287.4)
XYZxyz(16.7367, 9.5694, 56.8308)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E39CA #A5CA39
analogous
#395CCA #5E39CA #A639CA
triadic
#5E39CA #CA5E39 #39CA5E
tetradic
#5E39CA #CA395C #A5CA39 #39CAA6
square
#5E39CA #CA395C #A5CA39 #39CAA6
split-complementary
#5E39CA #CAA639 #5CCA39
monochromatic
#311D6C #472A9C #5E39CA #8569D7 #AD9AE4

Accessibility & contrast

On white

7.21
#5E39CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5E39CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E39CA
7.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E39CA#FFFFFF#000000##FFFFFF
##5E39CA1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#0053C7
Tritanopia (blue-blind)
#32607E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5e39ca;
/* rgb */ color: rgb(94, 57, 202);
/* oklch */ color: oklch(48.0% 0.210 287.4);
Tailwind
colors: {
  custom: {
    50: '#9673db',
    500: '#5e39ca',
    950: '#000000',
  },
}
SCSS
$custom: #5e39ca;
$custom-light: #9673db;
$custom-dark: #000000;
JSON
{
  "hex": "#5e39ca",
  "rgb": {
    "r": 94,
    "g": 57,
    "b": 202
  },
  "hsl": {
    "h": 255.31,
    "s": 57.769,
    "l": 50.784
  },
  "oklch": {
    "l": 0.48013,
    "c": 0.20953,
    "h": 287.4
  },
  "luminance": 0.0957
}

Semantic roles & 50–950 ramp

primary
#5E39CA
secondary
#BFD08F
accent
#E147BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5E39CA

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

Preview Lab → · Contrast checker → · Palette generator →

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