#5E1B72#5E1B72

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

Color values

HEX#5E1B72
RGBrgb(94, 27, 114)
HSLhsl(286, 62%, 28%)
HSVhsv(286, 76%, 45%)
CMYKcmyk(17.5%, 76.3%, 0%, 55.3%)
CIE-LABlab(24.89, 43.30, -35.78)
CIE-LCHlch(24.89, 56.17, 320.43°)
OKLaboklab(37.16% 0.1087 -0.1006)
OKLCHoklch(37.16% 0.148 317.2)
XYZxyz(8.0448, 4.3788, 16.3378)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B72 #2F721B
analogous
#331B72 #5E1B72 #721B5A
triadic
#5E1B72 #725E1B #1B725E
tetradic
#5E1B72 #72331B #2F721B #1B5A72
square
#5E1B72 #72331B #2F721B #1B5A72
split-complementary
#5E1B72 #5A721B #1B7233
monochromatic
#140619 #350F41 #5E1B72 #8727A3 #AD38D0

Accessibility & contrast

On white

11.20
#5E1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5E1B72
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B72#FFFFFF#000000##FFFFFF
##5E1B721.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5e1b72;
/* rgb */ color: rgb(94, 27, 114);
/* oklch */ color: oklch(37.2% 0.148 317.2);
Tailwind
colors: {
  custom: {
    50: '#8f5f9b',
    500: '#5e1b72',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b72;
$custom-light: #8f5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b72",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 286.207,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3716,
    "c": 0.14811,
    "h": 317.2
  },
  "luminance": 0.04378
}

Semantic roles & 50–950 ramp

primary
#5E1B72
secondary
#59A742
accent
#E54368
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5E1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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