#5D38D1#5D38D1

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

Color values

HEX#5D38D1
RGBrgb(93, 56, 209)
HSLhsl(255, 62%, 52%)
HSVhsv(255, 73%, 82%)
CMYKcmyk(55.5%, 73.2%, 0%, 18%)
CIE-LABlab(37.40, 53.90, -73.04)
CIE-LCHlch(37.40, 90.78, 306.42°)
OKLaboklab(48.43% 0.0604 -0.2102)
OKLCHoklch(48.43% 0.219 286)
XYZxyz(17.4335, 9.7580, 61.2741)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D38D1 #ACD138
analogous
#3860D1 #5D38D1 #AA38D1
triadic
#5D38D1 #D15D38 #38D15D
tetradic
#5D38D1 #D13860 #ACD138 #38D1AA
square
#5D38D1 #D13860 #ACD138 #38D1AA
split-complementary
#5D38D1 #D1AA38 #60D138
monochromatic
#301B74 #4526A6 #5D38D1 #856ADC #AE9BE8

Accessibility & contrast

On white

7.11
#5D38D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5D38D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D38D1
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D38D1#FFFFFF#000000##FFFFFF
##5D38D11.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD5
Deuteranopia (green-blind)
#0053CE
Tritanopia (blue-blind)
#276282
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5d38d1;
/* rgb */ color: rgb(93, 56, 209);
/* oklch */ color: oklch(48.4% 0.219 286.0);
Tailwind
colors: {
  custom: {
    50: '#9772e0',
    500: '#5d38d1',
    950: '#000000',
  },
}
SCSS
$custom: #5d38d1;
$custom-light: #9772e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d38d1",
  "rgb": {
    "r": 93,
    "g": 56,
    "b": 209
  },
  "hsl": {
    "h": 254.51,
    "s": 62.449,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48425,
    "c": 0.21873,
    "h": 286
  },
  "luminance": 0.09759
}

Semantic roles & 50–950 ramp

primary
#5D38D1
secondary
#C4D491
accent
#E642BE
background
#FAF7FD
surface
#F3EDFB
border
#CDC8D4
text
#0F0815
muted
#7F7B83

Preview Lab

Preview with #5D38D1

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

Preview Lab → · Contrast checker → · Palette generator →

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