#5E1FA9#5E1FA9

#5E1FA9 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 42.1% C 0.199 H 297.5°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5E1FA9
RGBrgb(94, 31, 169)
HSLhsl(267, 69%, 39%)
HSVhsv(267, 82%, 66%)
CMYKcmyk(44.4%, 81.7%, 0%, 33.7%)
CIE-LABlab(29.97, 54.52, -61.65)
CIE-LCHlch(29.97, 82.30, 311.49°)
OKLaboklab(42.14% 0.0919 -0.1766)
OKLCHoklch(42.14% 0.199 297.5)
XYZxyz(12.2656, 6.2240, 38.0835)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1FA9 #6AA91F
analogous
#1F25A9 #5E1FA9 #A31FA9
triadic
#5E1FA9 #A95E1F #1FA95E
tetradic
#5E1FA9 #A91F25 #6AA91F #1FA9A3
square
#5E1FA9 #A91F25 #6AA91F #1FA9A3
split-complementary
#5E1FA9 #A9A31F #25A91F
monochromatic
#240C42 #411675 #5E1FA9 #7B2DD8 #9C60E2

Accessibility & contrast

On white

9.35
#5E1FA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#5E1FA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1FA9
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1FA9#FFFFFF#000000##FFFFFF
##5E1FA91.009.352.249.35
#FFFFFF9.351.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#0045A6
Tritanopia (blue-blind)
#4A4765
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5e1fa9;
/* rgb */ color: rgb(94, 31, 169);
/* oklch */ color: oklch(42.1% 0.199 297.5);
Tailwind
colors: {
  custom: {
    50: '#9364c4',
    500: '#5e1fa9',
    950: '#000000',
  },
}
SCSS
$custom: #5e1fa9;
$custom-light: #9364c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1fa9",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 169
  },
  "hsl": {
    "h": 267.391,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.42136,
    "c": 0.19908,
    "h": 297.5
  },
  "luminance": 0.06224
}

Semantic roles & 50–950 ramp

primary
#5E1FA9
secondary
#96C75D
accent
#EC3C9C
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0613
muted
#7E7A82

Preview Lab

Preview with #5E1FA9

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

Preview Lab → · Contrast checker → · Palette generator →

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