#5E1B7F#5E1B7F

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

Color values

HEX#5E1B7F
RGBrgb(94, 27, 127)
HSLhsl(280, 65%, 30%)
HSVhsv(280, 79%, 50%)
CMYKcmyk(26%, 78.7%, 0%, 50.2%)
CIE-LABlab(25.85, 46.13, -42.50)
CIE-LCHlch(25.85, 62.72, 317.34°)
OKLaboklab(38.15% 0.1066 -0.1203)
OKLCHoklch(38.15% 0.161 311.5)
XYZxyz(8.8381, 4.6961, 20.5154)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B7F #3C7F1B
analogous
#2C1B7F #5E1B7F #7F1B6E
triadic
#5E1B7F #7F5E1B #1B7F5E
tetradic
#5E1B7F #7F2C1B #3C7F1B #1B6E7F
square
#5E1B7F #7F2C1B #3C7F1B #1B6E7F
split-complementary
#5E1B7F #6E7F1B #1B7F2C
monochromatic
#13061A #39104D #5E1B7F #8326B1 #A43ED6

Accessibility & contrast

On white

10.83
#5E1B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5E1B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B7F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B7F#FFFFFF#000000##FFFFFF
##5E1B7F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#073E7D
Tritanopia (blue-blind)
#5A334C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1b7f;
/* rgb */ color: rgb(94, 27, 127);
/* oklch */ color: oklch(38.1% 0.161 311.5);
Tailwind
colors: {
  custom: {
    50: '#905fa5',
    500: '#5e1b7f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b7f;
$custom-light: #905fa5;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b7f",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 280.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38148,
    "c": 0.16079,
    "h": 311.5
  },
  "luminance": 0.04696
}

Semantic roles & 50–950 ramp

primary
#5E1B7F
secondary
#68B343
accent
#E84077
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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