#5E1C8A#5E1C8A

#5E1C8A is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.1% C 0.171 H 307.3°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#5E1C8A
RGBrgb(94, 28, 138)
HSLhsl(276, 66%, 33%)
HSVhsv(276, 80%, 54%)
CMYKcmyk(31.9%, 79.7%, 0%, 45.9%)
CIE-LABlab(26.86, 48.24, -47.76)
CIE-LCHlch(26.86, 67.88, 315.29°)
OKLaboklab(39.14% 0.1033 -0.1358)
OKLCHoklch(39.14% 0.171 307.3)
XYZxyz(9.6178, 5.0453, 24.5070)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C8A #488A1C
analogous
#271C8A #5E1C8A #8A1C7F
triadic
#5E1C8A #8A5E1C #1C8A5E
tetradic
#5E1C8A #8A271C #488A1C #1C7F8A
square
#5E1C8A #8A271C #488A1C #1C7F8A
split-complementary
#5E1C8A #7F8A1C #1C8A27
monochromatic
#190724 #3B1257 #5E1C8A #8126BD #9F47DA

Accessibility & contrast

On white

10.45
#5E1C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E1C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C8A
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C8A#FFFFFF#000000##FFFFFF
##5E1C8A1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#573853
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1c8a;
/* rgb */ color: rgb(94, 28, 138);
/* oklch */ color: oklch(39.1% 0.171 307.3);
Tailwind
colors: {
  custom: {
    50: '#9060ad',
    500: '#5e1c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c8a;
$custom-light: #9060ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c8a",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 138
  },
  "hsl": {
    "h": 276,
    "s": 66.265,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39135,
    "c": 0.17062,
    "h": 307.3
  },
  "luminance": 0.05045
}

Semantic roles & 50–950 ramp

primary
#5E1C8A
secondary
#75BB46
accent
#E93F83
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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