#5F2076#5F2076

#5F2076 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.1% C 0.146 H 315.5°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#5F2076
RGBrgb(95, 32, 118)
HSLhsl(284, 57%, 29%)
HSVhsv(284, 73%, 46%)
CMYKcmyk(19.5%, 72.9%, 0%, 53.7%)
CIE-LABlab(26.08, 42.26, -36.41)
CIE-LCHlch(26.08, 55.78, 319.25°)
OKLaboklab(38.13% 0.1041 -0.1025)
OKLCHoklch(38.13% 0.146 315.5)
XYZxyz(8.5053, 4.7742, 17.6095)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2076 #377620
analogous
#342076 #5F2076 #762062
triadic
#5F2076 #765F20 #20765F
tetradic
#5F2076 #763420 #377620 #206276
square
#5F2076 #763420 #377620 #206276
split-complementary
#5F2076 #627620 #207634
monochromatic
#130718 #381346 #5F2076 #862DA6 #A844CC

Accessibility & contrast

On white

10.74
#5F2076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#5F2076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2076
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2076#FFFFFF#000000##FFFFFF
##5F20761.0010.741.9510.74
#FFFFFF10.741.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#1E3F74
Tritanopia (blue-blind)
#5D3148
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5f2076;
/* rgb */ color: rgb(95, 32, 118);
/* oklch */ color: oklch(38.1% 0.146 315.5);
Tailwind
colors: {
  custom: {
    50: '#90629e',
    500: '#5f2076',
    950: '#000000',
  },
}
SCSS
$custom: #5f2076;
$custom-light: #90629e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2076",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 118
  },
  "hsl": {
    "h": 283.953,
    "s": 57.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38134,
    "c": 0.14609,
    "h": 315.5
  },
  "luminance": 0.04774
}

Semantic roles & 50–950 ramp

primary
#5F2076
secondary
#62A948
accent
#E14770
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F2076

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

Preview Lab → · Contrast checker → · Palette generator →

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