#5E1B7C#5E1B7C

#5E1B7C is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.158 H 312.8°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5E1B7C
RGBrgb(94, 27, 124)
HSLhsl(281, 64%, 30%)
HSVhsv(281, 78%, 49%)
CMYKcmyk(24.2%, 78.2%, 0%, 51.4%)
CIE-LABlab(25.62, 45.47, -40.98)
CIE-LCHlch(25.62, 61.21, 317.97°)
OKLaboklab(37.91% 0.1072 -0.1159)
OKLCHoklch(37.91% 0.158 312.8)
XYZxyz(8.6455, 4.6190, 19.5010)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B7C #397C1B
analogous
#2D1B7C #5E1B7C #7C1B6A
triadic
#5E1B7C #7C5E1B #1B7C5E
tetradic
#5E1B7C #7C2D1B #397C1B #1B6A7C
square
#5E1B7C #7C2D1B #397C1B #1B6A7C
split-complementary
#5E1B7C #6A7C1B #1B7C2D
monochromatic
#130519 #38104A #5E1B7C #8426AE #A63DD5

Accessibility & contrast

On white

10.92
#5E1B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5E1B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B7C
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B7C#FFFFFF#000000##FFFFFF
##5E1B7C1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#0F3E7A
Tritanopia (blue-blind)
#5B314A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5e1b7c;
/* rgb */ color: rgb(94, 27, 124);
/* oklch */ color: oklch(37.9% 0.158 312.8);
Tailwind
colors: {
  custom: {
    50: '#8f5fa3',
    500: '#5e1b7c',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b7c;
$custom-light: #8f5fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b7c",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 281.443,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.37913,
    "c": 0.15785,
    "h": 312.8
  },
  "luminance": 0.04619
}

Semantic roles & 50–950 ramp

primary
#5E1B7C
secondary
#65B043
accent
#E74174
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5E1B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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