#5E1F84#5E1F84

#5E1F84 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.9% C 0.161 H 309.1°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#5E1F84
RGBrgb(94, 31, 132)
HSLhsl(277, 62%, 32%)
HSVhsv(277, 77%, 52%)
CMYKcmyk(28.8%, 76.5%, 0%, 48.2%)
CIE-LABlab(26.81, 45.64, -44.10)
CIE-LCHlch(26.81, 63.46, 315.98°)
OKLaboklab(38.95% 0.1018 -0.1251)
OKLCHoklch(38.95% 0.161 309.1)
XYZxyz(9.2701, 5.0258, 22.3070)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F84 #45841F
analogous
#2C1F84 #5E1F84 #841F78
triadic
#5E1F84 #845E1F #1F845E
tetradic
#5E1F84 #842C1F #45841F #1F7884
square
#5E1F84 #842C1F #45841F #1F7884
split-complementary
#5E1F84 #78841F #1F842C
monochromatic
#170821 #3B1352 #5E1F84 #812BB6 #A049D4

Accessibility & contrast

On white

10.47
#5E1F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1F84
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F84#FFFFFF#000000##FFFFFF
##5E1F841.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#014082
Tritanopia (blue-blind)
#583750
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e1f84;
/* rgb */ color: rgb(94, 31, 132);
/* oklch */ color: oklch(38.9% 0.161 309.1);
Tailwind
colors: {
  custom: {
    50: '#9062a8',
    500: '#5e1f84',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f84;
$custom-light: #9062a8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f84",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 277.426,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38946,
    "c": 0.16125,
    "h": 309.1
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

primary
#5E1F84
secondary
#72B748
accent
#E54380
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1F84

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

Preview Lab → · Contrast checker → · Palette generator →

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