#5E1B5F#5E1B5F

#5E1B5F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 35.9% C 0.130 H 327.3°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#5E1B5F
RGBrgb(94, 27, 95)
HSLhsl(299, 56%, 24%)
HSVhsv(299, 72%, 37%)
CMYKcmyk(1.1%, 71.6%, 0%, 62.7%)
CIE-LABlab(23.64, 39.45, -25.43)
CIE-LCHlch(23.64, 46.94, 327.20°)
OKLaboklab(35.87% 0.1095 -0.0704)
OKLCHoklch(35.87% 0.13 327.3)
XYZxyz(7.0735, 3.9903, 11.2219)
Luminance0.0399 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E1B5F #1C5F1B
analogous
#3C1B5F #5E1B5F #5F1B3E
triadic
#5E1B5F #5F5E1B #1B5F5E
tetradic
#5E1B5F #5F3C1B #1C5F1B #1B3E5F
square
#5E1B5F #5F3C1B #1C5F1B #1B3E5F
split-complementary
#5E1B5F #3E5F1B #1B5F3C
monochromatic
#180718 #2F0D2F #5E1B5F #8D298F #BC36BE

Accessibility & contrast

On white

11.68
#5E1B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5E1B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E1B5F
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E1B5F#FFFFFF#000000##FFFFFF
##5E1B5F1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103361
Deuteranopia (green-blind)
#2B3B5D
Tritanopia (blue-blind)
#61253A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5e1b5f;
/* rgb */ color: rgb(94, 27, 95);
/* oklch */ color: oklch(35.9% 0.130 327.3);
Tailwind
colors: {
  custom: {
    50: '#8e5e8d',
    500: '#5e1b5f',
    950: '#000000',
  },
}
SCSS
$custom: #5e1b5f;
$custom-light: #8e5e8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5e1b5f",
  "rgb": {
    "r": 94,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 299.118,
    "s": 55.738,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35867,
    "c": 0.13018,
    "h": 327.3
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#5E1B5F
secondary
#429541
accent
#DF494B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0D050C
muted
#7D797D

Preview Lab

Preview with #5E1B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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