#5E1E7B#5E1E7B

#5E1E7B is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.1% C 0.153 H 312.9°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#5E1E7B
RGBrgb(94, 30, 123)
HSLhsl(281, 61%, 30%)
HSVhsv(281, 76%, 48%)
CMYKcmyk(23.6%, 75.6%, 0%, 51.8%)
CIE-LABlab(25.98, 44.01, -39.77)
CIE-LCHlch(25.98, 59.32, 317.90°)
OKLaboklab(38.14% 0.1043 -0.1123)
OKLCHoklch(38.14% 0.153 312.9)
XYZxyz(8.6549, 4.7385, 19.1938)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1E7B #3B7B1E
analogous
#2F1E7B #5E1E7B #7B1E6A
triadic
#5E1E7B #7B5E1E #1E7B5E
tetradic
#5E1E7B #7B2F1E #3B7B1E #1E6A7B
square
#5E1E7B #7B2F1E #3B7B1E #1E6A7B
split-complementary
#5E1E7B #6A7B1E #1E7B2F
monochromatic
#130619 #38124A #5E1E7B #842AAC #A542D1

Accessibility & contrast

On white

10.78
#5E1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1E7B
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1E7B#FFFFFF#000000##FFFFFF
##5E1E7B1.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#143F79
Tritanopia (blue-blind)
#5B334B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1e7b;
/* rgb */ color: rgb(94, 30, 123);
/* oklch */ color: oklch(38.1% 0.153 312.9);
Tailwind
colors: {
  custom: {
    50: '#8f61a2',
    500: '#5e1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #5e1e7b;
$custom-light: #8f61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1e7b",
  "rgb": {
    "r": 94,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 281.29,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.38142,
    "c": 0.15331,
    "h": 312.9
  },
  "luminance": 0.04738
}

Semantic roles & 50–950 ramp

primary
#5E1E7B
secondary
#67AE46
accent
#E44476
background
#F9F5FA
surface
#F1EAF3
border
#CBC6CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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