#5E1FA6#5E1FA6

#5E1FA6 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.9% C 0.196 H 298.3°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#5E1FA6
RGBrgb(94, 31, 166)
HSLhsl(268, 69%, 39%)
HSVhsv(268, 81%, 65%)
CMYKcmyk(43.4%, 81.3%, 0%, 34.9%)
CIE-LABlab(29.69, 53.78, -60.30)
CIE-LCHlch(29.69, 80.80, 311.73°)
OKLaboklab(41.86% 0.0928 -0.1726)
OKLCHoklch(41.86% 0.196 298.3)
XYZxyz(11.9872, 6.1126, 36.6173)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1FA6 #67A61F
analogous
#1F23A6 #5E1FA6 #A11FA6
triadic
#5E1FA6 #A65E1F #1FA65E
tetradic
#5E1FA6 #A61F23 #67A61F #1FA6A1
square
#5E1FA6 #A61F23 #67A61F #1FA6A1
split-complementary
#5E1FA6 #A6A11F #23A61F
monochromatic
#240C3F #411572 #5E1FA6 #7B2BD7 #9B5EE1

Accessibility & contrast

On white

9.45
#5E1FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#5E1FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1FA6
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1FA6#FFFFFF#000000##FFFFFF
##5E1FA61.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0044A3
Tritanopia (blue-blind)
#4B4563
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #5e1fa6;
/* rgb */ color: rgb(94, 31, 166);
/* oklch */ color: oklch(41.9% 0.196 298.3);
Tailwind
colors: {
  custom: {
    50: '#9363c1',
    500: '#5e1fa6',
    950: '#000000',
  },
}
SCSS
$custom: #5e1fa6;
$custom-light: #9363c1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1fa6",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 268,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41861,
    "c": 0.19602,
    "h": 298.3
  },
  "luminance": 0.06113
}

Semantic roles & 50–950 ramp

primary
#5E1FA6
secondary
#94C55B
accent
#EB3C9A
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0E0612
muted
#7E7A81

Preview Lab

Preview with #5E1FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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