#5B286E#5B286E

#5B286E is a dark, vivid purple. Relative luminance 0.049; OKLCH L 38.0% C 0.124 H 315.8°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#5B286E
RGBrgb(91, 40, 110)
HSLhsl(284, 47%, 29%)
HSVhsv(284, 64%, 43%)
CMYKcmyk(17.3%, 63.6%, 0%, 56.9%)
CIE-LABlab(26.35, 35.52, -30.89)
CIE-LCHlch(26.35, 47.08, 318.99°)
OKLaboklab(38.03% 0.0889 -0.0865)
OKLCHoklch(38.03% 0.124 315.8)
XYZxyz(7.8872, 4.8678, 15.2729)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B286E #3B6E28
analogous
#38286E #5B286E #6E285E
triadic
#5B286E #6E5B28 #286E5B
tetradic
#5B286E #6E3828 #3B6E28 #285E6E
square
#5B286E #6E3828 #3B6E28 #285E6E
split-complementary
#5B286E #5E6E28 #286E38
monochromatic
#130816 #361841 #5B286E #80389B #A251C0

Accessibility & contrast

On white

10.64
#5B286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B286E
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B286E#FFFFFF#000000##FFFFFF
##5B286E1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133B70
Deuteranopia (green-blind)
#28406C
Tritanopia (blue-blind)
#5A3447
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b286e;
/* rgb */ color: rgb(91, 40, 110);
/* oklch */ color: oklch(38.0% 0.124 315.8);
Tailwind
colors: {
  custom: {
    50: '#8c6598',
    500: '#5b286e',
    950: '#000000',
  },
}
SCSS
$custom: #5b286e;
$custom-light: #8c6598;
$custom-dark: #000000;
JSON
{
  "hex": "#5b286e",
  "rgb": {
    "r": 91,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 283.714,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38034,
    "c": 0.12405,
    "h": 315.8
  },
  "luminance": 0.04868
}

Semantic roles & 50–950 ramp

primary
#5B286E
secondary
#67A051
accent
#D65176
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060D
muted
#7D7A7E

Preview Lab

Preview with #5B286E

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

Preview Lab → · Contrast checker → · Palette generator →

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