#5D255C#5D255C

#5D255C is a dark, moderate purple. Relative luminance 0.044; OKLCH L 36.8% C 0.111 H 328.2°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5D255C
RGBrgb(93, 37, 92)
HSLhsl(301, 43%, 25%)
HSVhsv(301, 60%, 36%)
CMYKcmyk(0%, 60.2%, 1.1%, 63.5%)
CIE-LABlab(25.02, 33.82, -21.28)
CIE-LCHlch(25.02, 39.96, 327.82°)
OKLaboklab(36.79% 0.0945 -0.0585)
OKLCHoklch(36.79% 0.111 328.2)
XYZxyz(7.1074, 4.4234, 10.6026)
Luminance0.0442 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D255C #255D26
analogous
#42255D #5D255C #5D2540
triadic
#5D255C #5C5D25 #255C5D
tetradic
#5D255C #5D4225 #255D26 #25405D
square
#5D255C #5D4225 #255D26 #25405D
split-complementary
#5D255C #405D25 #255D42
monochromatic
#160916 #311431 #5D255C #893687 #B548B3

Accessibility & contrast

On white

11.14
#5D255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5D255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D255C
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D255C#FFFFFF#000000##FFFFFF
##5D255C1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20375E
Deuteranopia (green-blind)
#323E5A
Tritanopia (blue-blind)
#602B3C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d255c;
/* rgb */ color: rgb(93, 37, 92);
/* oklch */ color: oklch(36.8% 0.111 328.2);
Tailwind
colors: {
  custom: {
    50: '#8d638a',
    500: '#5d255c',
    950: '#000000',
  },
}
SCSS
$custom: #5d255c;
$custom-light: #8d638a;
$custom-dark: #000000;
JSON
{
  "hex": "#5d255c",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 301.071,
    "s": 43.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.36785,
    "c": 0.11118,
    "h": 328.2
  },
  "luminance": 0.04423
}

Semantic roles & 50–950 ramp

primary
#5D255C
secondary
#4D904F
accent
#D35755
background
#F8F6F8
surface
#F0EBF0
border
#CBC6CB
text
#0C050C
muted
#7D7A7D

Preview Lab

Preview with #5D255C

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

Preview Lab → · Contrast checker → · Palette generator →

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