#5B1E63#5B1E63

#5B1E63 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.0% C 0.128 H 322.9°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#5B1E63
RGBrgb(91, 30, 99)
HSLhsl(293, 53%, 25%)
HSVhsv(293, 70%, 39%)
CMYKcmyk(8.1%, 69.7%, 0%, 61.2%)
CIE-LABlab(23.85, 38.13, -27.75)
CIE-LCHlch(23.85, 47.16, 323.95°)
OKLaboklab(36% 0.1021 -0.0773)
OKLCHoklch(36% 0.128 322.9)
XYZxyz(7.0306, 4.0539, 12.2141)
Luminance0.0405 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1E63 #26631E
analogous
#381E63 #5B1E63 #631E49
triadic
#5B1E63 #635B1E #1E635B
tetradic
#5B1E63 #63381E #26631E #1E4963
square
#5B1E63 #63381E #26631E #1E4963
split-complementary
#5B1E63 #49631E #1E6338
monochromatic
#160717 #301034 #5B1E63 #862C92 #B13AC1

Accessibility & contrast

On white

11.60
#5B1E63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5B1E63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1E63
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1E63#FFFFFF#000000##FFFFFF
##5B1E631.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D3465
Deuteranopia (green-blind)
#283B61
Tritanopia (blue-blind)
#5C293D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b1e63;
/* rgb */ color: rgb(91, 30, 99);
/* oklch */ color: oklch(36.0% 0.128 322.9);
Tailwind
colors: {
  custom: {
    50: '#8c5f90',
    500: '#5b1e63',
    950: '#000000',
  },
}
SCSS
$custom: #5b1e63;
$custom-light: #8c5f90;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1e63",
  "rgb": {
    "r": 91,
    "g": 30,
    "b": 99
  },
  "hsl": {
    "h": 293.043,
    "s": 53.488,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35996,
    "c": 0.12802,
    "h": 322.9
  },
  "luminance": 0.04054
}

Semantic roles & 50–950 ramp

primary
#5B1E63
secondary
#4F9845
accent
#DD4B5C
background
#F8F5F8
surface
#F0EAF0
border
#CBC6CB
text
#0C050C
muted
#7D797D

Preview Lab

Preview with #5B1E63

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

Preview Lab → · Contrast checker → · Palette generator →

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