#5B1952#5B1952

#5B1952 is a dark, moderate purple. Relative luminance 0.035; OKLCH L 34.4% C 0.120 H 333.8°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#5B1952
RGBrgb(91, 25, 82)
HSLhsl(308, 57%, 23%)
HSVhsv(308, 73%, 36%)
CMYKcmyk(0%, 72.5%, 9.9%, 64.3%)
CIE-LABlab(22.05, 37.11, -19.32)
CIE-LCHlch(22.05, 41.84, 332.49°)
OKLaboklab(34.37% 0.1074 -0.0528)
OKLCHoklch(34.37% 0.12 333.8)
XYZxyz(6.1850, 3.5291, 8.3364)
Luminance0.0353 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1952 #195B22
analogous
#43195B #5B1952 #5B1931
triadic
#5B1952 #525B19 #19525B
tetradic
#5B1952 #5B4319 #195B22 #19315B
square
#5B1952 #5B4319 #195B22 #19315B
split-complementary
#5B1952 #315B19 #195B43
monochromatic
#180716 #2B0C27 #5B1952 #8B267D #BB33A9

Accessibility & contrast

On white

12.31
#5B1952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5B1952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1952
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1952#FFFFFF#000000##FFFFFF
##5B19521.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182F54
Deuteranopia (green-blind)
#2E3850
Tritanopia (blue-blind)
#5F1E33
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5b1952;
/* rgb */ color: rgb(91, 25, 82);
/* oklch */ color: oklch(34.4% 0.120 333.8);
Tailwind
colors: {
  custom: {
    50: '#8c5c83',
    500: '#5b1952',
    950: '#000000',
  },
}
SCSS
$custom: #5b1952;
$custom-light: #8c5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1952",
  "rgb": {
    "r": 91,
    "g": 25,
    "b": 82
  },
  "hsl": {
    "h": 308.182,
    "s": 56.897,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34371,
    "c": 0.11969,
    "h": 333.8
  },
  "luminance": 0.03529
}

Semantic roles & 50–950 ramp

primary
#5B1952
secondary
#3F914A
accent
#E05C48
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5B1952

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

Preview Lab → · Contrast checker → · Palette generator →

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