#5E1F92#5E1F92

#5E1F92 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.1% C 0.176 H 304.2°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#5E1F92
RGBrgb(94, 31, 146)
HSLhsl(273, 65%, 35%)
HSVhsv(273, 79%, 57%)
CMYKcmyk(35.6%, 78.8%, 0%, 42.7%)
CIE-LABlab(27.94, 48.93, -50.96)
CIE-LCHlch(27.94, 70.65, 313.84°)
OKLaboklab(40.1% 0.0987 -0.1452)
OKLCHoklch(40.1% 0.176 304.2)
XYZxyz(10.2932, 5.4350, 27.6953)
Luminance0.0544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F92 #53921F
analogous
#251F92 #5E1F92 #921F8C
triadic
#5E1F92 #925E1F #1F925E
tetradic
#5E1F92 #92251F #53921F #1F8C92
square
#5E1F92 #92251F #53921F #1F8C92
split-complementary
#5E1F92 #8C921F #1F9225
monochromatic
#1D0A2D #3D1460 #5E1F92 #7F2AC4 #9C51DA

Accessibility & contrast

On white

10.06
#5E1F92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#5E1F92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F92
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F92#FFFFFF#000000##FFFFFF
##5E1F921.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004195
Deuteranopia (green-blind)
#004290
Tritanopia (blue-blind)
#543D58
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #5e1f92;
/* rgb */ color: rgb(94, 31, 146);
/* oklch */ color: oklch(40.1% 0.176 304.2);
Tailwind
colors: {
  custom: {
    50: '#9162b3',
    500: '#5e1f92',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f92;
$custom-light: #9162b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f92",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 146
  },
  "hsl": {
    "h": 272.87,
    "s": 64.972,
    "l": 34.706
  },
  "oklch": {
    "l": 0.40096,
    "c": 0.17557,
    "h": 304.2
  },
  "luminance": 0.05435
}

Semantic roles & 50–950 ramp

primary
#5E1F92
secondary
#81BD50
accent
#E8408C
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1F92

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

Preview Lab → · Contrast checker → · Palette generator →

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