#5E1C84#5E1C84

#5E1C84 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.6% C 0.165 H 309.5°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#5E1C84
RGBrgb(94, 28, 132)
HSLhsl(278, 65%, 31%)
HSVhsv(278, 79%, 52%)
CMYKcmyk(28.8%, 78.8%, 0%, 48.2%)
CIE-LABlab(26.38, 46.86, -44.79)
CIE-LCHlch(26.38, 64.83, 316.30°)
OKLaboklab(38.64% 0.1047 -0.1271)
OKLCHoklch(38.64% 0.165 309.5)
XYZxyz(9.1954, 4.8763, 22.2821)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1C84 #42841C
analogous
#2A1C84 #5E1C84 #841C76
triadic
#5E1C84 #845E1C #1C845E
tetradic
#5E1C84 #842A1C #42841C #1C7684
square
#5E1C84 #842A1C #42841C #1C7684
split-complementary
#5E1C84 #76841C #1C842A
monochromatic
#16071F #3A1152 #5E1C84 #8227B6 #A143D7

Accessibility & contrast

On white

10.63
#5E1C84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#5E1C84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1C84
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1C84#FFFFFF#000000##FFFFFF
##5E1C841.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C87
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#58354F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1c84;
/* rgb */ color: rgb(94, 28, 132);
/* oklch */ color: oklch(38.6% 0.165 309.5);
Tailwind
colors: {
  custom: {
    50: '#9060a8',
    500: '#5e1c84',
    950: '#000000',
  },
}
SCSS
$custom: #5e1c84;
$custom-light: #9060a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1c84",
  "rgb": {
    "r": 94,
    "g": 28,
    "b": 132
  },
  "hsl": {
    "h": 278.077,
    "s": 65,
    "l": 31.373
  },
  "oklch": {
    "l": 0.38644,
    "c": 0.16464,
    "h": 309.5
  },
  "luminance": 0.04876
}

Semantic roles & 50–950 ramp

primary
#5E1C84
secondary
#6EB745
accent
#E8407D
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1C84

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

Preview Lab → · Contrast checker → · Palette generator →

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