#5E286F#5E286F

#5E286F is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.5% C 0.127 H 317.3°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#5E286F
RGBrgb(94, 40, 111)
HSLhsl(286, 47%, 30%)
HSVhsv(286, 64%, 44%)
CMYKcmyk(15.3%, 64%, 0%, 56.5%)
CIE-LABlab(26.86, 36.57, -30.70)
CIE-LCHlch(26.86, 47.74, 319.99°)
OKLaboklab(38.52% 0.093 -0.0858)
OKLCHoklch(38.52% 0.127 317.3)
XYZxyz(8.2437, 5.0453, 15.5754)
Luminance0.0505 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E286F #396F28
analogous
#3B286F #5E286F #6F285D
triadic
#5E286F #6F5E28 #286F5E
tetradic
#5E286F #6F3B28 #396F28 #285D6F
square
#5E286F #6F3B28 #396F28 #285D6F
split-complementary
#5E286F #5D6F28 #286F3B
monochromatic
#130816 #381842 #5E286F #84389C #A651C0

Accessibility & contrast

On white

10.45
#5E286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#5E286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5E286F
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E286F#FFFFFF#000000##FFFFFF
##5E286F1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C71
Deuteranopia (green-blind)
#2A416D
Tritanopia (blue-blind)
#5D3447
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5e286f;
/* rgb */ color: rgb(94, 40, 111);
/* oklch */ color: oklch(38.5% 0.127 317.3);
Tailwind
colors: {
  custom: {
    50: '#8e6699',
    500: '#5e286f',
    950: '#000000',
  },
}
SCSS
$custom: #5e286f;
$custom-light: #8e6699;
$custom-dark: #000000;
JSON
{
  "hex": "#5e286f",
  "rgb": {
    "r": 94,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 285.634,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38517,
    "c": 0.12656,
    "h": 317.3
  },
  "luminance": 0.05045
}

Semantic roles & 50–950 ramp

primary
#5E286F
secondary
#65A151
accent
#D75171
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060E
muted
#7D7A7E

Preview Lab

Preview with #5E286F

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

Preview Lab → · Contrast checker → · Palette generator →

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