#5E1F87#5E1F87

#5E1F87 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.2% C 0.164 H 308.0°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#5E1F87
RGBrgb(94, 31, 135)
HSLhsl(276, 63%, 33%)
HSVhsv(276, 77%, 53%)
CMYKcmyk(30.4%, 77%, 0%, 47.1%)
CIE-LABlab(27.04, 46.33, -45.59)
CIE-LCHlch(27.04, 65.00, 315.46°)
OKLaboklab(39.19% 0.1012 -0.1295)
OKLCHoklch(39.19% 0.164 308)
XYZxyz(9.4783, 5.1091, 23.4038)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1F87 #48871F
analogous
#2A1F87 #5E1F87 #871F7C
triadic
#5E1F87 #875E1F #1F875E
tetradic
#5E1F87 #872A1F #48871F #1F7C87
square
#5E1F87 #872A1F #48871F #1F7C87
split-complementary
#5E1F87 #7C871F #1F872A
monochromatic
#190823 #3B1455 #5E1F87 #812AB9 #9F4BD6

Accessibility & contrast

On white

10.39
#5E1F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5E1F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1F87
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1F87#FFFFFF#000000##FFFFFF
##5E1F871.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8A
Deuteranopia (green-blind)
#004085
Tritanopia (blue-blind)
#573852
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5e1f87;
/* rgb */ color: rgb(94, 31, 135);
/* oklch */ color: oklch(39.2% 0.164 308.0);
Tailwind
colors: {
  custom: {
    50: '#9062ab',
    500: '#5e1f87',
    950: '#000000',
  },
}
SCSS
$custom: #5e1f87;
$custom-light: #9062ab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1f87",
  "rgb": {
    "r": 94,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 276.346,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.39186,
    "c": 0.16432,
    "h": 308
  },
  "luminance": 0.05109
}

Semantic roles & 50–950 ramp

primary
#5E1F87
secondary
#75B84A
accent
#E64283
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5E1F87

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

Preview Lab → · Contrast checker → · Palette generator →

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