#5B2255#5B2255

#5B2255 is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.7% C 0.108 H 331.9°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#5B2255
RGBrgb(91, 34, 85)
HSLhsl(306, 46%, 25%)
HSVhsv(306, 63%, 36%)
CMYKcmyk(0%, 62.6%, 6.6%, 64.3%)
CIE-LABlab(23.75, 33.40, -18.67)
CIE-LCHlch(23.75, 38.26, 330.80°)
OKLaboklab(35.66% 0.0954 -0.051)
OKLCHoklch(35.66% 0.108 331.9)
XYZxyz(6.5261, 4.0245, 9.0257)
Luminance0.0402 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2255 #225B28
analogous
#45225B #5B2255 #5B2239
triadic
#5B2255 #555B22 #22555B
tetradic
#5B2255 #5B4522 #225B28 #22395B
square
#5B2255 #5B4522 #225B28 #22395B
split-complementary
#5B2255 #395B22 #225B45
monochromatic
#160815 #2E112B #5B2255 #88337F #B443A8

Accessibility & contrast

On white

11.64
#5B2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2255
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2255#FFFFFF#000000##FFFFFF
##5B22551.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#203357
Deuteranopia (green-blind)
#323B53
Tritanopia (blue-blind)
#5F2738
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5b2255;
/* rgb */ color: rgb(91, 34, 85);
/* oklch */ color: oklch(35.7% 0.108 331.9);
Tailwind
colors: {
  custom: {
    50: '#8b6185',
    500: '#5b2255',
    950: '#000000',
  },
}
SCSS
$custom: #5b2255;
$custom-light: #8b6185;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2255",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 306.316,
    "s": 45.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.35664,
    "c": 0.1082,
    "h": 331.9
  },
  "luminance": 0.04024
}

Semantic roles & 50–950 ramp

primary
#5B2255
secondary
#4A8F51
accent
#D56053
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0C050B
muted
#7D797C

Preview Lab

Preview with #5B2255

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

Preview Lab → · Contrast checker → · Palette generator →

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