#5B255A#5B255A

#5B255A is a dark, moderate purple. Relative luminance 0.043; OKLCH L 36.4% C 0.108 H 328.2°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#5B255A
RGBrgb(91, 37, 90)
HSLhsl(301, 42%, 25%)
HSVhsv(301, 59%, 36%)
CMYKcmyk(0%, 59.3%, 1.1%, 64.3%)
CIE-LABlab(24.59, 32.81, -20.66)
CIE-LCHlch(24.59, 38.77, 327.80°)
OKLaboklab(36.37% 0.0917 -0.0568)
OKLCHoklch(36.37% 0.108 328.2)
XYZxyz(6.8213, 4.2859, 10.1388)
Luminance0.0428 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B255A #255B26
analogous
#41255B #5B255A #5B253F
triadic
#5B255A #5A5B25 #255A5B
tetradic
#5B255A #5B4125 #255B26 #253F5B
square
#5B255A #5B4125 #255B26 #253F5B
split-complementary
#5B255A #3F5B25 #255B41
monochromatic
#160916 #2F132F #5B255A #873785 #B248B0

Accessibility & contrast

On white

11.31
#5B255A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5B255A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B255A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B255A#FFFFFF#000000##FFFFFF
##5B255A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20365C
Deuteranopia (green-blind)
#313D58
Tritanopia (blue-blind)
#5E2B3B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b255a;
/* rgb */ color: rgb(91, 37, 90);
/* oklch */ color: oklch(36.4% 0.108 328.2);
Tailwind
colors: {
  custom: {
    50: '#8b6389',
    500: '#5b255a',
    950: '#000000',
  },
}
SCSS
$custom: #5b255a;
$custom-light: #8b6389;
$custom-dark: #000000;
JSON
{
  "hex": "#5b255a",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 90
  },
  "hsl": {
    "h": 301.111,
    "s": 42.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36369,
    "c": 0.10785,
    "h": 328.2
  },
  "luminance": 0.04285
}

Semantic roles & 50–950 ramp

primary
#5B255A
secondary
#4D8E4F
accent
#D25856
background
#F8F6F8
surface
#F0EBF0
border
#CBC6CB
text
#0C050B
muted
#7D7A7C

Preview Lab

Preview with #5B255A

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

Preview Lab → · Contrast checker → · Palette generator →

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