#5D286E#5D286E

#5D286E is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.3% C 0.125 H 317.1°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#5D286E
RGBrgb(93, 40, 110)
HSLhsl(285, 47%, 29%)
HSVhsv(285, 64%, 43%)
CMYKcmyk(15.5%, 63.6%, 0%, 56.9%)
CIE-LABlab(26.65, 36.07, -30.40)
CIE-LCHlch(26.65, 47.17, 319.88°)
OKLaboklab(38.31% 0.0916 -0.085)
OKLCHoklch(38.31% 0.125 317.1)
XYZxyz(8.0871, 4.9708, 15.2823)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D286E #396E28
analogous
#3A286E #5D286E #6E285C
triadic
#5D286E #6E5D28 #286E5D
tetradic
#5D286E #6E3A28 #396E28 #285C6E
square
#5D286E #6E3A28 #396E28 #285C6E
split-complementary
#5D286E #5C6E28 #286E3A
monochromatic
#130816 #371841 #5D286E #83389B #A551C0

Accessibility & contrast

On white

10.53
#5D286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5D286E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D286E
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D286E#FFFFFF#000000##FFFFFF
##5D286E1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C70
Deuteranopia (green-blind)
#2A416C
Tritanopia (blue-blind)
#5C3447
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5d286e;
/* rgb */ color: rgb(93, 40, 110);
/* oklch */ color: oklch(38.3% 0.125 317.1);
Tailwind
colors: {
  custom: {
    50: '#8d6598',
    500: '#5d286e',
    950: '#000000',
  },
}
SCSS
$custom: #5d286e;
$custom-light: #8d6598;
$custom-dark: #000000;
JSON
{
  "hex": "#5d286e",
  "rgb": {
    "r": 93,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 285.429,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38312,
    "c": 0.12499,
    "h": 317.1
  },
  "luminance": 0.04971
}

Semantic roles & 50–950 ramp

primary
#5D286E
secondary
#65A051
accent
#D65172
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5D286E

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

Preview Lab → · Contrast checker → · Palette generator →

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