#5E1F91#5E1F91

#5E1F91 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.175 H 304.5°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#5E1F91
RGBrgb(94, 31, 145)
HSLhsl(273, 65%, 35%)
HSVhsv(273, 79%, 57%)
CMYKcmyk(35.2%, 78.6%, 0%, 43.1%)
CIE-LABlab(27.86, 48.69, -50.48)
CIE-LCHlch(27.86, 70.14, 313.97°)
OKLaboklab(40.01% 0.0989 -0.1438)
OKLCHoklch(40.01% 0.175 304.5)
XYZxyz(10.2157, 5.4040, 27.2875)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F91 #52911F
analogous
#251F91 #5E1F91 #911F8B
triadic
#5E1F91 #915E1F #1F915E
tetradic
#5E1F91 #91251F #52911F #1F8B91
square
#5E1F91 #91251F #52911F #1F8B91
split-complementary
#5E1F91 #8B911F #1F9125
monochromatic
#1D092C #3D145F #5E1F91 #7F2AC3 #9C51DA

Accessibility & contrast

On white

10.09
#5E1F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#5E1F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F91
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F91#FFFFFF#000000##FFFFFF
##5E1F911.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004094
Deuteranopia (green-blind)
#00428F
Tritanopia (blue-blind)
#543C57
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e1f91;
/* rgb */ color: rgb(94, 31, 145);
/* oklch */ color: oklch(40.0% 0.175 304.5);
Tailwind
colors: {
  custom: {
    50: '#9162b2',
    500: '#5e1f91',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f91;
$custom-light: #9162b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f91",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 273.158,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40012,
    "c": 0.17455,
    "h": 304.5
  },
  "luminance": 0.05404
}

Semantic roles & 50–950 ramp

primary
#5E1F91
secondary
#80BD4F
accent
#E8408B
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1F91

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

Preview Lab → · Contrast checker → · Palette generator →

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