#5E1F99#5E1F99

#5E1F99 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.183 H 302.0°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#5E1F99
RGBrgb(94, 31, 153)
HSLhsl(271, 66%, 36%)
HSVhsv(271, 80%, 60%)
CMYKcmyk(38.6%, 79.7%, 0%, 40%)
CIE-LABlab(28.54, 50.61, -54.29)
CIE-LCHlch(28.54, 74.22, 312.99°)
OKLaboklab(40.7% 0.0968 -0.155)
OKLCHoklch(40.7% 0.183 302)
XYZxyz(10.8545, 5.6595, 30.6514)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F99 #5A991F
analogous
#211F99 #5E1F99 #991F97
triadic
#5E1F99 #995E1F #1F995E
tetradic
#5E1F99 #99211F #5A991F #1F9799
square
#5E1F99 #99211F #5A991F #1F9799
split-complementary
#5E1F99 #97991F #1F9921
monochromatic
#1F0A33 #3F1566 #5E1F99 #7D29CC #9B56DD

Accessibility & contrast

On white

9.85
#5E1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5E1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F99
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F99#FFFFFF#000000##FFFFFF
##5E1F991.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#51405C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5e1f99;
/* rgb */ color: rgb(94, 31, 153);
/* oklch */ color: oklch(40.7% 0.183 302.0);
Tailwind
colors: {
  custom: {
    50: '#9263b8',
    500: '#5e1f99',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f99;
$custom-light: #9263b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f99",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 270.984,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40699,
    "c": 0.18274,
    "h": 302
  },
  "luminance": 0.0566
}

Semantic roles & 50–950 ramp

primary
#5E1F99
secondary
#88C054
accent
#E93F91
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0E0611
muted
#7E7A80

Preview Lab

Preview with #5E1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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