#5B2155#5B2155

#5B2155 is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.5% C 0.110 H 331.8°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#5B2155
RGBrgb(91, 33, 85)
HSLhsl(306, 47%, 24%)
HSVhsv(306, 64%, 36%)
CMYKcmyk(0%, 63.7%, 6.6%, 64.3%)
CIE-LABlab(23.57, 33.90, -18.96)
CIE-LCHlch(23.57, 38.84, 330.79°)
OKLaboklab(35.53% 0.0969 -0.0519)
OKLCHoklch(35.53% 0.11 331.8)
XYZxyz(6.4979, 3.9682, 9.0163)
Luminance0.0397 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2155 #215B27
analogous
#44215B #5B2155 #5B2138
triadic
#5B2155 #555B21 #21555B
tetradic
#5B2155 #5B4421 #215B27 #21385B
square
#5B2155 #5B4421 #215B27 #21385B
split-complementary
#5B2155 #385B21 #215B44
monochromatic
#160815 #2E112B #5B2155 #88317F #B542A9

Accessibility & contrast

On white

11.71
#5B2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5B2155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2155
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2155#FFFFFF#000000##FFFFFF
##5B21551.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3357
Deuteranopia (green-blind)
#313B53
Tritanopia (blue-blind)
#5F2637
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b2155;
/* rgb */ color: rgb(91, 33, 85);
/* oklch */ color: oklch(35.5% 0.110 331.8);
Tailwind
colors: {
  custom: {
    50: '#8b6085',
    500: '#5b2155',
    950: '#000000',
  },
}
SCSS
$custom: #5b2155;
$custom-light: #8b6085;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2155",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 306.207,
    "s": 46.774,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35528,
    "c": 0.10989,
    "h": 331.8
  },
  "luminance": 0.03968
}

Semantic roles & 50–950 ramp

primary
#5B2155
secondary
#498F50
accent
#D65F51
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0C050B
muted
#7D797C

Preview Lab

Preview with #5B2155

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

Preview Lab → · Contrast checker → · Palette generator →

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