#5E38D1#5E38D1

#5E38D1 is a mid, highly saturated violet. Relative luminance 0.098; OKLCH L 48.5% C 0.219 H 286.4°. Best body text is #FFFFFF at 7.09:1 contrast (WCAG AA passes).

Color values

HEX#5E38D1
RGBrgb(94, 56, 209)
HSLhsl(255, 62%, 52%)
HSVhsv(255, 73%, 82%)
CMYKcmyk(55%, 73.2%, 0%, 18%)
CIE-LABlab(37.50, 54.04, -72.88)
CIE-LCHlch(37.50, 90.73, 306.55°)
OKLaboklab(48.52% 0.0618 -0.2097)
OKLCHoklch(48.52% 0.219 286.4)
XYZxyz(17.5354, 9.8105, 61.2789)
Luminance0.0981 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E38D1 #ABD138
analogous
#385FD1 #5E38D1 #AB38D1
triadic
#5E38D1 #D15E38 #38D15E
tetradic
#5E38D1 #D1385F #ABD138 #38D1AB
square
#5E38D1 #D1385F #ABD138 #38D1AB
split-complementary
#5E38D1 #D1AB38 #5FD138
monochromatic
#311B74 #4626A6 #5E38D1 #866ADC #AE9BE8

Accessibility & contrast

On white

7.09
#5E38D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5E38D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E38D1
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E38D1#FFFFFF#000000##FFFFFF
##5E38D11.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD5
Deuteranopia (green-blind)
#0054CE
Tritanopia (blue-blind)
#2A6282
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5e38d1;
/* rgb */ color: rgb(94, 56, 209);
/* oklch */ color: oklch(48.5% 0.219 286.4);
Tailwind
colors: {
  custom: {
    50: '#9773e0',
    500: '#5e38d1',
    950: '#000000',
  },
}
SCSS
$custom: #5e38d1;
$custom-light: #9773e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e38d1",
  "rgb": {
    "r": 94,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 254.902,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48516,
    "c": 0.21865,
    "h": 286.4
  },
  "luminance": 0.09811
}

Semantic roles & 50–950 ramp

primary
#5E38D1
secondary
#C3D491
accent
#E642BD
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5E38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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