#5F286F#5F286F

#5F286F is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.7% C 0.127 H 318.0°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#5F286F
RGBrgb(95, 40, 111)
HSLhsl(286, 47%, 30%)
HSVhsv(286, 64%, 44%)
CMYKcmyk(14.4%, 64%, 0%, 56.5%)
CIE-LABlab(27.01, 36.84, -30.45)
CIE-LCHlch(27.01, 47.80, 320.43°)
OKLaboklab(38.66% 0.0944 -0.0851)
OKLCHoklch(38.66% 0.127 318)
XYZxyz(8.3470, 5.0985, 15.5803)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F286F #386F28
analogous
#3C286F #5F286F #6F285C
triadic
#5F286F #6F5F28 #286F5F
tetradic
#5F286F #6F3C28 #386F28 #285C6F
square
#5F286F #6F3C28 #386F28 #285C6F
split-complementary
#5F286F #5C6F28 #286F3C
monochromatic
#130816 #381842 #5F286F #86389C #A751C0

Accessibility & contrast

On white

10.40
#5F286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#5F286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F286F
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F286F#FFFFFF#000000##FFFFFF
##5F286F1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143C71
Deuteranopia (green-blind)
#2B426D
Tritanopia (blue-blind)
#5F3447
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f286f;
/* rgb */ color: rgb(95, 40, 111);
/* oklch */ color: oklch(38.7% 0.127 318.0);
Tailwind
colors: {
  custom: {
    50: '#8f6699',
    500: '#5f286f',
    950: '#000000',
  },
}
SCSS
$custom: #5f286f;
$custom-light: #8f6699;
$custom-dark: #000000;
JSON
{
  "hex": "#5f286f",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 286.479,
    "s": 47.02,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38658,
    "c": 0.12705,
    "h": 318
  },
  "luminance": 0.05098
}

Semantic roles & 50–950 ramp

primary
#5F286F
secondary
#63A151
accent
#D7516F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060E
muted
#7D7A7E

Preview Lab

Preview with #5F286F

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

Preview Lab → · Contrast checker → · Palette generator →

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