#5E1C9D#5E1C9D

#5E1C9D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.8% C 0.190 H 301.1°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#5E1C9D
RGBrgb(94, 28, 157)
HSLhsl(271, 70%, 36%)
HSVhsv(271, 82%, 62%)
CMYKcmyk(40.1%, 82.2%, 0%, 38.4%)
CIE-LABlab(28.50, 52.72, -56.80)
CIE-LCHlch(28.50, 77.49, 312.86°)
OKLaboklab(40.78% 0.0979 -0.1624)
OKLCHoklch(40.78% 0.19 301.1)
XYZxyz(11.1156, 5.6444, 32.3956)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C9D #5B9D1C
analogous
#1E1C9D #5E1C9D #9D1C9C
triadic
#5E1C9D #9D5E1C #1C9D5E
tetradic
#5E1C9D #9D1E1C #5B9D1C #1C9C9D
square
#5E1C9D #9D1E1C #5B9D1C #1C9C9D
split-complementary
#5E1C9D #9C9D1C #1C9D1E
monochromatic
#200935 #3F1369 #5E1C9D #7D25D1 #9B53E0

Accessibility & contrast

On white

9.86
#5E1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1C9D
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C9D#FFFFFF#000000##FFFFFF
##5E1C9D1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00429B
Tritanopia (blue-blind)
#50405E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1c9d;
/* rgb */ color: rgb(94, 28, 157);
/* oklch */ color: oklch(40.8% 0.190 301.1);
Tailwind
colors: {
  custom: {
    50: '#9262bb',
    500: '#5e1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c9d;
$custom-light: #9262bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c9d",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 270.698,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4078,
    "c": 0.1896,
    "h": 301.1
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#5E1C9D
secondary
#89C351
accent
#ED3B92
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0512
muted
#7E7A81

Preview Lab

Preview with #5E1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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