#5E1F90#5E1F90

#5E1F90 is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.9% C 0.174 H 304.8°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#5E1F90
RGBrgb(94, 31, 144)
HSLhsl(273, 65%, 34%)
HSVhsv(273, 78%, 56%)
CMYKcmyk(34.7%, 78.5%, 0%, 43.5%)
CIE-LABlab(27.77, 48.46, -50.00)
CIE-LCHlch(27.77, 69.63, 314.10°)
OKLaboklab(39.93% 0.0992 -0.1424)
OKLCHoklch(39.93% 0.174 304.8)
XYZxyz(10.1390, 5.3733, 26.8832)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F90 #51901F
analogous
#261F90 #5E1F90 #901F8A
triadic
#5E1F90 #905E1F #1F905E
tetradic
#5E1F90 #90261F #51901F #1F8A90
square
#5E1F90 #90261F #51901F #1F8A90
split-complementary
#5E1F90 #8A901F #1F9026
monochromatic
#1C092B #3D145E #5E1F90 #7F2AC2 #9D50D9

Accessibility & contrast

On white

10.12
#5E1F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5E1F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F90
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F90#FFFFFF#000000##FFFFFF
##5E1F901.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1f90;
/* rgb */ color: rgb(94, 31, 144);
/* oklch */ color: oklch(39.9% 0.174 304.8);
Tailwind
colors: {
  custom: {
    50: '#9162b1',
    500: '#5e1f90',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f90;
$custom-light: #9162b1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f90",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 273.451,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.39928,
    "c": 0.17353,
    "h": 304.8
  },
  "luminance": 0.05373
}

Semantic roles & 50–950 ramp

primary
#5E1F90
secondary
#7FBC4E
accent
#E8408A
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0511
muted
#7E7A80

Preview Lab

Preview with #5E1F90

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

Preview Lab → · Contrast checker → · Palette generator →

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