#5E1D9C#5E1D9C

#5E1D9C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.8% C 0.188 H 301.3°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5E1D9C
RGBrgb(94, 29, 156)
HSLhsl(271, 69%, 36%)
HSVhsv(271, 81%, 61%)
CMYKcmyk(39.7%, 81.4%, 0%, 38.8%)
CIE-LABlab(28.53, 52.11, -56.13)
CIE-LCHlch(28.53, 76.59, 312.87°)
OKLaboklab(40.78% 0.0975 -0.1604)
OKLCHoklch(40.78% 0.188 301.3)
XYZxyz(11.0547, 5.6586, 31.9559)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1D9C #5B9C1D
analogous
#1F1D9C #5E1D9C #9C1D9B
triadic
#5E1D9C #9C5E1D #1D9C5E
tetradic
#5E1D9C #9C1F1D #5B9C1D #1D9B9C
square
#5E1D9C #9C1F1D #5B9C1D #1D9B9C
split-complementary
#5E1D9C #9B9C1D #1D9C1F
monochromatic
#200A35 #3F1368 #5E1D9C #7D27D0 #9B54DF

Accessibility & contrast

On white

9.85
#5E1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E1D9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1D9C
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1D9C#FFFFFF#000000##FFFFFF
##5E1D9C1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439F
Deuteranopia (green-blind)
#00439A
Tritanopia (blue-blind)
#50405D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1d9c;
/* rgb */ color: rgb(94, 29, 156);
/* oklch */ color: oklch(40.8% 0.188 301.3);
Tailwind
colors: {
  custom: {
    50: '#9262ba',
    500: '#5e1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #5e1d9c;
$custom-light: #9262ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1d9c",
  "rgb": {
    "r": 94,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 270.709,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.40779,
    "c": 0.18769,
    "h": 301.3
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#5E1D9C
secondary
#89C252
accent
#EB3C92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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