#5F1972#5F1972

#5F1972 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.151 H 317.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#5F1972
RGBrgb(95, 25, 114)
HSLhsl(287, 64%, 27%)
HSVhsv(287, 78%, 45%)
CMYKcmyk(16.7%, 78.1%, 0%, 55.3%)
CIE-LABlab(24.78, 44.31, -35.95)
CIE-LCHlch(24.78, 57.06, 320.94°)
OKLaboklab(37.11% 0.112 -0.1011)
OKLCHoklch(37.11% 0.151 317.9)
XYZxyz(8.1038, 4.3434, 16.3278)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1972 #2C7219
analogous
#331972 #5F1972 #721959
triadic
#5F1972 #725F19 #19725F
tetradic
#5F1972 #723319 #2C7219 #195972
square
#5F1972 #723319 #2C7219 #195972
split-complementary
#5F1972 #597219 #197233
monochromatic
#150619 #350E40 #5F1972 #8924A4 #B033D2

Accessibility & contrast

On white

11.24
#5F1972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F1972 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1972
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1972#FFFFFF#000000##FFFFFF
##5F19721.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#1D3D70
Tritanopia (blue-blind)
#5E2C44
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1972;
/* rgb */ color: rgb(95, 25, 114);
/* oklch */ color: oklch(37.1% 0.151 317.9);
Tailwind
colors: {
  custom: {
    50: '#905e9b',
    500: '#5f1972',
    950: '#000000',
  },
}
SCSS
$custom: #5f1972;
$custom-light: #905e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1972",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 287.191,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.37115,
    "c": 0.1509,
    "h": 317.9
  },
  "luminance": 0.04343
}

Semantic roles & 50–950 ramp

primary
#5F1972
secondary
#56A740
accent
#E74164
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1972

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

Preview Lab → · Contrast checker → · Palette generator →

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