#5F286A#5F286A

#5F286A is a dark, vivid purple. Relative luminance 0.050; OKLCH L 38.3% C 0.122 H 320.7°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#5F286A
RGBrgb(95, 40, 106)
HSLhsl(290, 45%, 29%)
HSVhsv(290, 62%, 42%)
CMYKcmyk(10.4%, 62.3%, 0%, 58.4%)
CIE-LABlab(26.71, 35.75, -27.71)
CIE-LCHlch(26.71, 45.23, 322.21°)
OKLaboklab(38.34% 0.0941 -0.0771)
OKLCHoklch(38.34% 0.122 320.7)
XYZxyz(8.0793, 4.9915, 14.1707)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F286A #336A28
analogous
#3E286A #5F286A #6A2854
triadic
#5F286A #6A5F28 #286A5F
tetradic
#5F286A #6A3E28 #336A28 #28546A
square
#5F286A #6A3E28 #336A28 #28546A
split-complementary
#5F286A #546A28 #286A3E
monochromatic
#140816 #37173E #5F286A #873996 #AB50BD

Accessibility & contrast

On white

10.51
#5F286A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5F286A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F286A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F286A#FFFFFF#000000##FFFFFF
##5F286A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3B6C
Deuteranopia (green-blind)
#2E4168
Tritanopia (blue-blind)
#603245
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5f286a;
/* rgb */ color: rgb(95, 40, 106);
/* oklch */ color: oklch(38.3% 0.122 320.7);
Tailwind
colors: {
  custom: {
    50: '#8e6595',
    500: '#5f286a',
    950: '#000000',
  },
}
SCSS
$custom: #5f286a;
$custom-light: #8e6595;
$custom-dark: #000000;
JSON
{
  "hex": "#5f286a",
  "rgb": {
    "r": 95,
    "g": 40,
    "b": 106
  },
  "hsl": {
    "h": 290,
    "s": 45.205,
    "l": 28.627
  },
  "oklch": {
    "l": 0.38339,
    "c": 0.1217,
    "h": 320.7
  },
  "luminance": 0.04991
}

Semantic roles & 50–950 ramp

primary
#5F286A
secondary
#5E9D51
accent
#D55369
background
#F8F6F9
surface
#F0EBF1
border
#CBC6CB
text
#0D060D
muted
#7D7A7E

Preview Lab

Preview with #5F286A

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

Preview Lab → · Contrast checker → · Palette generator →

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