#5B286D#5B286D

#5B286D is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.0% C 0.123 H 316.3°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#5B286D
RGBrgb(91, 40, 109)
HSLhsl(284, 46%, 29%)
HSVhsv(284, 63%, 43%)
CMYKcmyk(16.5%, 63.3%, 0%, 57.3%)
CIE-LABlab(26.29, 35.30, -30.35)
CIE-LCHlch(26.29, 46.55, 319.31°)
OKLaboklab(37.97% 0.0889 -0.0849)
OKLCHoklch(37.97% 0.123 316.3)
XYZxyz(7.8331, 4.8461, 14.9878)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B286D #3A6D28
analogous
#39286D #5B286D #6D285D
triadic
#5B286D #6D5B28 #286D5B
tetradic
#5B286D #6D3928 #3A6D28 #285D6D
square
#5B286D #6D3928 #3A6D28 #285D6D
split-complementary
#5B286D #5D6D28 #286D39
monochromatic
#130816 #361840 #5B286D #80389A #A250BF

Accessibility & contrast

On white

10.66
#5B286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#5B286D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B286D
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B286D#FFFFFF#000000##FFFFFF
##5B286D1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143B6F
Deuteranopia (green-blind)
#29406B
Tritanopia (blue-blind)
#5A3446
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b286d;
/* rgb */ color: rgb(91, 40, 109);
/* oklch */ color: oklch(38.0% 0.123 316.3);
Tailwind
colors: {
  custom: {
    50: '#8c6597',
    500: '#5b286d',
    950: '#000000',
  },
}
SCSS
$custom: #5b286d;
$custom-light: #8c6597;
$custom-dark: #000000;
JSON
{
  "hex": "#5b286d",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 284.348,
    "s": 46.309,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37968,
    "c": 0.12293,
    "h": 316.3
  },
  "luminance": 0.04846
}

Semantic roles & 50–950 ramp

primary
#5B286D
secondary
#669F51
accent
#D65274
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5B286D

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

Preview Lab → · Contrast checker → · Palette generator →

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