#5F1772#5F1772

#5F1772 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 36.9% C 0.153 H 318.1°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#5F1772
RGBrgb(95, 23, 114)
HSLhsl(287, 66%, 27%)
HSVhsv(287, 80%, 45%)
CMYKcmyk(16.7%, 79.8%, 0%, 55.3%)
CIE-LABlab(24.52, 45.05, -36.37)
CIE-LCHlch(24.52, 57.90, 321.09°)
OKLaboklab(36.93% 0.114 -0.1023)
OKLCHoklch(36.93% 0.153 318.1)
XYZxyz(8.0625, 4.2610, 16.3141)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1772 #2A7217
analogous
#321772 #5F1772 #721758
triadic
#5F1772 #725F17 #17725F
tetradic
#5F1772 #723217 #2A7217 #175872
square
#5F1772 #723217 #2A7217 #175872
split-complementary
#5F1772 #587217 #177232
monochromatic
#150519 #350D3F #5F1772 #8921A5 #B22ED5

Accessibility & contrast

On white

11.34
#5F1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5F1772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1772
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1772#FFFFFF#000000##FFFFFF
##5F17721.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#1B3C70
Tritanopia (blue-blind)
#5E2B44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1772;
/* rgb */ color: rgb(95, 23, 114);
/* oklch */ color: oklch(36.9% 0.153 318.1);
Tailwind
colors: {
  custom: {
    50: '#905d9b',
    500: '#5f1772',
    950: '#000000',
  },
}
SCSS
$custom: #5f1772;
$custom-light: #905d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1772",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 287.473,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36931,
    "c": 0.15314,
    "h": 318.1
  },
  "luminance": 0.04261
}

Semantic roles & 50–950 ramp

primary
#5F1772
secondary
#53A83D
accent
#E93E62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1772

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

Preview Lab → · Contrast checker → · Palette generator →

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