#5D255E#5D255E

#5D255E is a dark, moderate purple. Relative luminance 0.045; OKLCH L 36.9% C 0.113 H 326.9°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#5D255E
RGBrgb(93, 37, 94)
HSLhsl(299, 44%, 26%)
HSVhsv(299, 61%, 37%)
CMYKcmyk(1.1%, 60.6%, 0%, 63.1%)
CIE-LABlab(25.13, 34.22, -22.42)
CIE-LCHlch(25.13, 40.91, 326.77°)
OKLaboklab(36.9% 0.0948 -0.0618)
OKLCHoklch(36.9% 0.113 326.9)
XYZxyz(7.1960, 4.4589, 11.0691)
Luminance0.0446 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D255E #265E25
analogous
#40255E #5D255E #5E2542
triadic
#5D255E #5E5D25 #255E5D
tetradic
#5D255E #5E4025 #265E25 #25425E
square
#5D255E #5E4025 #265E25 #25425E
split-complementary
#5D255E #425E25 #255E40
monochromatic
#160916 #321432 #5D255E #88368A #B448B6

Accessibility & contrast

On white

11.10
#5D255E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5D255E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D255E
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D255E#FFFFFF#000000##FFFFFF
##5D255E1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3760
Deuteranopia (green-blind)
#313E5C
Tritanopia (blue-blind)
#602C3D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d255e;
/* rgb */ color: rgb(93, 37, 94);
/* oklch */ color: oklch(36.9% 0.113 326.9);
Tailwind
colors: {
  custom: {
    50: '#8d638c',
    500: '#5d255e',
    950: '#000000',
  },
}
SCSS
$custom: #5d255e;
$custom-light: #8d638c;
$custom-dark: #000000;
JSON
{
  "hex": "#5d255e",
  "rgb": {
    "r": 93,
    "g": 37,
    "b": 94
  },
  "hsl": {
    "h": 298.947,
    "s": 43.511,
    "l": 25.686
  },
  "oklch": {
    "l": 0.369,
    "c": 0.11316,
    "h": 326.9
  },
  "luminance": 0.04458
}

Semantic roles & 50–950 ramp

primary
#5D255E
secondary
#4F914D
accent
#D35557
background
#F8F6F8
surface
#F0EBF0
border
#CBC6CB
text
#0C050C
muted
#7D7A7D

Preview Lab

Preview with #5D255E

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

Preview Lab → · Contrast checker → · Palette generator →

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