#5E1A87#5E1A87

#5E1A87 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.7% C 0.170 H 308.6°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5E1A87
RGBrgb(94, 26, 135)
HSLhsl(277, 68%, 32%)
HSVhsv(277, 81%, 53%)
CMYKcmyk(30.4%, 80.7%, 0%, 47.1%)
CIE-LABlab(26.36, 48.31, -46.71)
CIE-LCHlch(26.36, 67.20, 315.97°)
OKLaboklab(38.7% 0.1058 -0.1327)
OKLCHoklch(38.7% 0.17 308.6)
XYZxyz(9.3578, 4.8679, 23.3636)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1A87 #43871A
analogous
#281A87 #5E1A87 #871A7A
triadic
#5E1A87 #875E1A #1A875E
tetradic
#5E1A87 #87281A #43871A #1A7A87
square
#5E1A87 #87281A #43871A #1A7A87
split-complementary
#5E1A87 #7A871A #1A8728
monochromatic
#170620 #3A1054 #5E1A87 #8224BA #A141DA

Accessibility & contrast

On white

10.64
#5E1A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5E1A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1A87
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1A87#FFFFFF#000000##FFFFFF
##5E1A871.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003F85
Tritanopia (blue-blind)
#573651
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e1a87;
/* rgb */ color: rgb(94, 26, 135);
/* oklch */ color: oklch(38.7% 0.170 308.6);
Tailwind
colors: {
  custom: {
    50: '#905fab',
    500: '#5e1a87',
    950: '#000000',
  },
}
SCSS
$custom: #5e1a87;
$custom-light: #905fab;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1a87",
  "rgb": {
    "r": 94,
    "g": 26,
    "b": 135
  },
  "hsl": {
    "h": 277.431,
    "s": 67.702,
    "l": 31.569
  },
  "oklch": {
    "l": 0.38702,
    "c": 0.1697,
    "h": 308.6
  },
  "luminance": 0.04868
}

Semantic roles & 50–950 ramp

primary
#5E1A87
secondary
#70BA42
accent
#EB3D7E
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E1A87

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

Preview Lab → · Contrast checker → · Palette generator →

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