#5E1B7A#5E1B7A

#5E1B7A is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.8% C 0.156 H 313.6°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#5E1B7A
RGBrgb(94, 27, 122)
HSLhsl(282, 64%, 29%)
HSVhsv(282, 78%, 48%)
CMYKcmyk(23%, 77.9%, 0%, 52.2%)
CIE-LABlab(25.47, 45.02, -39.95)
CIE-LCHlch(25.47, 60.19, 318.42°)
OKLaboklab(37.76% 0.1075 -0.1129)
OKLCHoklch(37.76% 0.156 313.6)
XYZxyz(8.5203, 4.5690, 18.8417)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B7A #377A1B
analogous
#2F1B7A #5E1B7A #7A1B67
triadic
#5E1B7A #7A5E1B #1B7A5E
tetradic
#5E1B7A #7A2F1B #377A1B #1B677A
square
#5E1B7A #7A2F1B #377A1B #1B677A
split-complementary
#5E1B7A #677A1B #1B7A2F
monochromatic
#130619 #371048 #5E1B7A #8526AC #A73CD4

Accessibility & contrast

On white

10.97
#5E1B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5E1B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B7A
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B7A#FFFFFF#000000##FFFFFF
##5E1B7A1.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#123E78
Tritanopia (blue-blind)
#5B3149
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5e1b7a;
/* rgb */ color: rgb(94, 27, 122);
/* oklch */ color: oklch(37.8% 0.156 313.6);
Tailwind
colors: {
  custom: {
    50: '#8f5fa1',
    500: '#5e1b7a',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b7a;
$custom-light: #8f5fa1;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b7a",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 122
  },
  "hsl": {
    "h": 282.316,
    "s": 63.758,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37759,
    "c": 0.15589,
    "h": 313.6
  },
  "luminance": 0.04569
}

Semantic roles & 50–950 ramp

primary
#5E1B7A
secondary
#62AE43
accent
#E74172
background
#F9F5FA
surface
#F1EAF3
border
#CBC6CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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