#5D286F#5D286F

#5D286F is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.4% C 0.126 H 316.6°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#5D286F
RGBrgb(93, 40, 111)
HSLhsl(285, 47%, 30%)
HSVhsv(285, 64%, 44%)
CMYKcmyk(16.2%, 64%, 0%, 56.5%)
CIE-LABlab(26.71, 36.30, -30.94)
CIE-LCHlch(26.71, 47.70, 319.55°)
OKLaboklab(38.38% 0.0917 -0.0866)
OKLCHoklch(38.38% 0.126 316.6)
XYZxyz(8.1418, 4.9927, 15.5707)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D286F #3A6F28
analogous
#3A286F #5D286F #6F285E
triadic
#5D286F #6F5D28 #286F5D
tetradic
#5D286F #6F3A28 #3A6F28 #285E6F
square
#5D286F #6F3A28 #3A6F28 #285E6F
split-complementary
#5D286F #5E6F28 #286F3A
monochromatic
#130816 #371842 #5D286F #83389C #A451C0

Accessibility & contrast

On white

10.51
#5D286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5D286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D286F
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D286F#FFFFFF#000000##FFFFFF
##5D286F1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133C71
Deuteranopia (green-blind)
#29416D
Tritanopia (blue-blind)
#5C3447
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d286f;
/* rgb */ color: rgb(93, 40, 111);
/* oklch */ color: oklch(38.4% 0.126 316.6);
Tailwind
colors: {
  custom: {
    50: '#8d6599',
    500: '#5d286f',
    950: '#000000',
  },
}
SCSS
$custom: #5d286f;
$custom-light: #8d6599;
$custom-dark: #000000;
JSON
{
  "hex": "#5d286f",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 284.789,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38377,
    "c": 0.12609,
    "h": 316.6
  },
  "luminance": 0.04992
}

Semantic roles & 50–950 ramp

primary
#5D286F
secondary
#66A151
accent
#D75173
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5D286F

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

Preview Lab → · Contrast checker → · Palette generator →

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