#5E1B7D#5E1B7D

#5E1B7D is a dark, vivid purple. Relative luminance 0.046; OKLCH L 38.0% C 0.159 H 312.4°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5E1B7D
RGBrgb(94, 27, 125)
HSLhsl(281, 64%, 30%)
HSVhsv(281, 78%, 49%)
CMYKcmyk(24.8%, 78.4%, 0%, 51%)
CIE-LABlab(25.70, 45.69, -41.49)
CIE-LCHlch(25.70, 61.71, 317.76°)
OKLaboklab(37.99% 0.107 -0.1174)
OKLCHoklch(37.99% 0.159 312.4)
XYZxyz(8.7090, 4.6445, 19.8358)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B7D #3A7D1B
analogous
#2D1B7D #5E1B7D #7D1B6B
triadic
#5E1B7D #7D5E1B #1B7D5E
tetradic
#5E1B7D #7D2D1B #3A7D1B #1B6B7D
square
#5E1B7D #7D2D1B #3A7D1B #1B6B7D
split-complementary
#5E1B7D #6B7D1B #1B7D2D
monochromatic
#130519 #38104B #5E1B7D #8426AF #A53DD5

Accessibility & contrast

On white

10.89
#5E1B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5E1B7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B7D
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B7D#FFFFFF#000000##FFFFFF
##5E1B7D1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#0C3E7B
Tritanopia (blue-blind)
#5A324B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1b7d;
/* rgb */ color: rgb(94, 27, 125);
/* oklch */ color: oklch(38.0% 0.159 312.4);
Tailwind
colors: {
  custom: {
    50: '#905fa3',
    500: '#5e1b7d',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b7d;
$custom-light: #905fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b7d",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 281.02,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37991,
    "c": 0.15883,
    "h": 312.4
  },
  "luminance": 0.04644
}

Semantic roles & 50–950 ramp

primary
#5E1B7D
secondary
#66B143
accent
#E74075
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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