#5F2072#5F2072

#5F2072 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.8% C 0.142 H 317.3°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5F2072
RGBrgb(95, 32, 114)
HSLhsl(286, 56%, 29%)
HSVhsv(286, 72%, 45%)
CMYKcmyk(16.7%, 71.9%, 0%, 55.3%)
CIE-LABlab(25.81, 41.38, -34.30)
CIE-LCHlch(25.81, 53.75, 320.35°)
OKLaboklab(37.85% 0.1045 -0.0963)
OKLCHoklch(37.85% 0.142 317.3)
XYZxyz(8.2726, 4.6812, 16.3841)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2072 #337220
analogous
#362072 #5F2072 #72205C
triadic
#5F2072 #725F20 #20725F
tetradic
#5F2072 #723620 #337220 #205C72
square
#5F2072 #723620 #337220 #205C72
split-complementary
#5F2072 #5C7220 #207236
monochromatic
#140718 #371342 #5F2072 #872DA2 #AB42CA

Accessibility & contrast

On white

10.85
#5F2072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F2072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2072
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2072#FFFFFF#000000##FFFFFF
##5F20721.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003974
Deuteranopia (green-blind)
#223F70
Tritanopia (blue-blind)
#5E3046
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f2072;
/* rgb */ color: rgb(95, 32, 114);
/* oklch */ color: oklch(37.8% 0.142 317.3);
Tailwind
colors: {
  custom: {
    50: '#8f619b',
    500: '#5f2072',
    950: '#000000',
  },
}
SCSS
$custom: #5f2072;
$custom-light: #8f619b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2072",
  "rgb": {
    "r": 95,
    "g": 32,
    "b": 114
  },
  "hsl": {
    "h": 286.098,
    "s": 56.164,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37849,
    "c": 0.14206,
    "h": 317.3
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#5F2072
secondary
#5EA648
accent
#DF486B
background
#F9F6F9
surface
#F1EBF2
border
#CBC6CC
text
#0D050E
muted
#7E7A7E

Preview Lab

Preview with #5F2072

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

Preview Lab → · Contrast checker → · Palette generator →

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