#5F286C#5F286C

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

Color values

HEX#5F286C
RGBrgb(95, 40, 108)
HSLhsl(289, 46%, 29%)
HSVhsv(289, 63%, 42%)
CMYKcmyk(12%, 63%, 0%, 57.6%)
CIE-LABlab(26.83, 36.18, -28.81)
CIE-LCHlch(26.83, 46.25, 321.47°)
OKLaboklab(38.46% 0.0943 -0.0803)
OKLCHoklch(38.46% 0.124 319.6)
XYZxyz(8.1845, 5.0335, 14.7249)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F286C #356C28
analogous
#3D286C #5F286C #6C2857
triadic
#5F286C #6C5F28 #286C5F
tetradic
#5F286C #6C3D28 #356C28 #28576C
square
#5F286C #6C3D28 #356C28 #28576C
split-complementary
#5F286C #576C28 #286C3D
monochromatic
#140816 #38173F #5F286C #863999 #A950BE

Accessibility & contrast

On white

10.47
#5F286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F286C
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F286C#FFFFFF#000000##FFFFFF
##5F286C1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183C6E
Deuteranopia (green-blind)
#2D416A
Tritanopia (blue-blind)
#5F3346
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f286c;
/* rgb */ color: rgb(95, 40, 108);
/* oklch */ color: oklch(38.5% 0.124 319.6);
Tailwind
colors: {
  custom: {
    50: '#8f6696',
    500: '#5f286c',
    950: '#000000',
  },
}
SCSS
$custom: #5f286c;
$custom-light: #8f6696;
$custom-dark: #000000;
JSON
{
  "hex": "#5f286c",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 288.529,
    "s": 45.946,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38465,
    "c": 0.12383,
    "h": 319.6
  },
  "luminance": 0.05033
}

Semantic roles & 50–950 ramp

primary
#5F286C
secondary
#609E51
accent
#D6526B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0D060D
muted
#7D7A7E

Preview Lab

Preview with #5F286C

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

Preview Lab → · Contrast checker → · Palette generator →

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