#5E158A#5E158A

#5E158A is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.5% C 0.177 H 307.9°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#5E158A
RGBrgb(94, 21, 138)
HSLhsl(277, 74%, 31%)
HSVhsv(277, 85%, 54%)
CMYKcmyk(31.9%, 84.8%, 0%, 45.9%)
CIE-LABlab(26.01, 50.71, -49.14)
CIE-LCHlch(26.01, 70.61, 315.90°)
OKLaboklab(38.54% 0.1089 -0.1398)
OKLCHoklch(38.54% 0.177 307.9)
XYZxyz(9.4707, 4.7511, 24.4580)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E158A #418A15
analogous
#23158A #5E158A #8A157B
triadic
#5E158A #8A5E15 #158A5E
tetradic
#5E158A #8A2315 #418A15 #157B8A
square
#5E158A #8A2315 #418A15 #157B8A
split-complementary
#5E158A #7B8A15 #158A23
monochromatic
#160520 #3A0D55 #5E158A #821DBF #A239E1

Accessibility & contrast

On white

10.77
#5E158A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5E158A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E158A
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E158A#FFFFFF#000000##FFFFFF
##5E158A1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#573551
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5e158a;
/* rgb */ color: rgb(94, 21, 138);
/* oklch */ color: oklch(38.5% 0.177 307.9);
Tailwind
colors: {
  custom: {
    50: '#915ead',
    500: '#5e158a',
    950: '#000000',
  },
}
SCSS
$custom: #5e158a;
$custom-light: #915ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5e158a",
  "rgb": {
    "r": 94,
    "g": 21,
    "b": 138
  },
  "hsl": {
    "h": 277.436,
    "s": 73.585,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38542,
    "c": 0.17721,
    "h": 307.9
  },
  "luminance": 0.04751
}

Semantic roles & 50–950 ramp

primary
#5E158A
secondary
#6DBE3D
accent
#F0387D
background
#F9F5FA
surface
#F2EAF4
border
#CCC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5E158A

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

Preview Lab → · Contrast checker → · Palette generator →

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