#5E1B73#5E1B73

#5E1B73 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.2% C 0.149 H 316.7°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#5E1B73
RGBrgb(94, 27, 115)
HSLhsl(286, 62%, 28%)
HSVhsv(286, 77%, 45%)
CMYKcmyk(18.3%, 76.5%, 0%, 54.9%)
CIE-LABlab(24.96, 43.51, -36.31)
CIE-LCHlch(24.96, 56.67, 320.15°)
OKLaboklab(37.23% 0.1086 -0.1022)
OKLCHoklch(37.23% 0.149 316.7)
XYZxyz(8.1021, 4.4017, 16.6392)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B73 #30731B
analogous
#321B73 #5E1B73 #731B5C
triadic
#5E1B73 #735E1B #1B735E
tetradic
#5E1B73 #73321B #30731B #1B5C73
square
#5E1B73 #73321B #30731B #1B5C73
split-complementary
#5E1B73 #5C731B #1B7332
monochromatic
#140619 #350F41 #5E1B73 #8727A5 #AC38D0

Accessibility & contrast

On white

11.17
#5E1B73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5E1B73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B73
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B73#FFFFFF#000000##FFFFFF
##5E1B731.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#1C3D71
Tritanopia (blue-blind)
#5D2D45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5e1b73;
/* rgb */ color: rgb(94, 27, 115);
/* oklch */ color: oklch(37.2% 0.149 316.7);
Tailwind
colors: {
  custom: {
    50: '#8f5f9c',
    500: '#5e1b73',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b73;
$custom-light: #8f5f9c;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b73",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 115
  },
  "hsl": {
    "h": 285.682,
    "s": 61.972,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37233,
    "c": 0.14907,
    "h": 316.7
  },
  "luminance": 0.04401
}

Semantic roles & 50–950 ramp

primary
#5E1B73
secondary
#5AA842
accent
#E54369
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1B73

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

Preview Lab → · Contrast checker → · Palette generator →

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