#5F286E#5F286E

#5F286E is a dark, vivid purple. Relative luminance 0.051; OKLCH L 38.6% C 0.126 H 318.5°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#5F286E
RGBrgb(95, 40, 110)
HSLhsl(287, 47%, 29%)
HSVhsv(287, 64%, 43%)
CMYKcmyk(13.6%, 63.6%, 0%, 56.9%)
CIE-LABlab(26.95, 36.62, -29.90)
CIE-LCHlch(26.95, 47.28, 320.77°)
OKLaboklab(38.59% 0.0943 -0.0835)
OKLCHoklch(38.59% 0.126 318.5)
XYZxyz(8.2922, 5.0766, 15.2919)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F286E #376E28
analogous
#3C286E #5F286E #6E285A
triadic
#5F286E #6E5F28 #286E5F
tetradic
#5F286E #6E3C28 #376E28 #285A6E
square
#5F286E #6E3C28 #376E28 #285A6E
split-complementary
#5F286E #5A6E28 #286E3C
monochromatic
#130816 #381841 #5F286E #86389B #A851C0

Accessibility & contrast

On white

10.42
#5F286E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F286E
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F286E#FFFFFF#000000##FFFFFF
##5F286E1.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163C70
Deuteranopia (green-blind)
#2C426C
Tritanopia (blue-blind)
#5F3447
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #5f286e;
/* rgb */ color: rgb(95, 40, 110);
/* oklch */ color: oklch(38.6% 0.126 318.5);
Tailwind
colors: {
  custom: {
    50: '#8f6698',
    500: '#5f286e',
    950: '#000000',
  },
}
SCSS
$custom: #5f286e;
$custom-light: #8f6698;
$custom-dark: #000000;
JSON
{
  "hex": "#5f286e",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 110
  },
  "hsl": {
    "h": 287.143,
    "s": 46.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38593,
    "c": 0.12597,
    "h": 318.5
  },
  "luminance": 0.05076
}

Semantic roles & 50–950 ramp

primary
#5F286E
secondary
#62A051
accent
#D6516E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060D
muted
#7D7A7E

Preview Lab

Preview with #5F286E

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

Preview Lab → · Contrast checker → · Palette generator →

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