#5F1971#5F1971

#5F1971 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.150 H 318.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5F1971
RGBrgb(95, 25, 113)
HSLhsl(288, 64%, 27%)
HSVhsv(288, 78%, 44%)
CMYKcmyk(15.9%, 77.9%, 0%, 55.7%)
CIE-LABlab(24.70, 44.10, -35.42)
CIE-LCHlch(24.70, 56.57, 321.23°)
OKLaboklab(37.04% 0.1122 -0.0995)
OKLCHoklch(37.04% 0.15 318.4)
XYZxyz(8.0472, 4.3208, 16.0297)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1971 #2B7119
analogous
#331971 #5F1971 #711957
triadic
#5F1971 #715F19 #19715F
tetradic
#5F1971 #713319 #2B7119 #195771
square
#5F1971 #713319 #2B7119 #195771
split-complementary
#5F1971 #577119 #197133
monochromatic
#150619 #350E3F #5F1971 #8924A3 #B133D2

Accessibility & contrast

On white

11.27
#5F1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5F1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1971
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1971#FFFFFF#000000##FFFFFF
##5F19711.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#1E3D6F
Tritanopia (blue-blind)
#5F2B44
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1971;
/* rgb */ color: rgb(95, 25, 113);
/* oklch */ color: oklch(37.0% 0.150 318.4);
Tailwind
colors: {
  custom: {
    50: '#905e9a',
    500: '#5f1971',
    950: '#000000',
  },
}
SCSS
$custom: #5f1971;
$custom-light: #905e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1971",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 287.727,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.37042,
    "c": 0.14995,
    "h": 318.4
  },
  "luminance": 0.0432
}

Semantic roles & 50–950 ramp

primary
#5F1971
secondary
#55A640
accent
#E74163
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1971

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

Preview Lab → · Contrast checker → · Palette generator →

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