#5F1672#5F1672

#5F1672 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.154 H 318.2°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#5F1672
RGBrgb(95, 22, 114)
HSLhsl(288, 68%, 27%)
HSVhsv(288, 81%, 45%)
CMYKcmyk(16.7%, 80.7%, 0%, 55.3%)
CIE-LABlab(24.39, 45.41, -36.57)
CIE-LCHlch(24.39, 58.31, 321.15°)
OKLaboklab(36.84% 0.1149 -0.1029)
OKLCHoklch(36.84% 0.154 318.2)
XYZxyz(8.0431, 4.2220, 16.3076)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1672 #297216
analogous
#311672 #5F1672 #721657
triadic
#5F1672 #725F16 #16725F
tetradic
#5F1672 #723116 #297216 #165772
square
#5F1672 #723116 #297216 #165772
split-complementary
#5F1672 #577216 #167231
monochromatic
#15051A #340C3F #5F1672 #8A20A5 #B32CD6

Accessibility & contrast

On white

11.39
#5F1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1672
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1672#FFFFFF#000000##FFFFFF
##5F16721.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#1A3C70
Tritanopia (blue-blind)
#5E2A44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1672;
/* rgb */ color: rgb(95, 22, 114);
/* oklch */ color: oklch(36.8% 0.154 318.2);
Tailwind
colors: {
  custom: {
    50: '#905d9b',
    500: '#5f1672',
    950: '#000000',
  },
}
SCSS
$custom: #5f1672;
$custom-light: #905d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1672",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 287.609,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36843,
    "c": 0.15421,
    "h": 318.2
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

primary
#5F1672
secondary
#52A83C
accent
#EB3D61
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1672

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

Preview Lab → · Contrast checker → · Palette generator →

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