#5F1970#5F1970

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

Color values

HEX#5F1970
RGBrgb(95, 25, 112)
HSLhsl(288, 64%, 27%)
HSVhsv(288, 78%, 44%)
CMYKcmyk(15.2%, 77.7%, 0%, 56.1%)
CIE-LABlab(24.63, 43.89, -34.89)
CIE-LCHlch(24.63, 56.07, 321.52°)
OKLaboklab(36.97% 0.1123 -0.098)
OKLCHoklch(36.97% 0.149 318.9)
XYZxyz(7.9912, 4.2984, 15.7348)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1970 #2A7019
analogous
#341970 #5F1970 #701956
triadic
#5F1970 #705F19 #19705F
tetradic
#5F1970 #703419 #2A7019 #195670
square
#5F1970 #703419 #2A7019 #195670
split-complementary
#5F1970 #567019 #197034
monochromatic
#150619 #350E3E #5F1970 #8924A2 #B232D1

Accessibility & contrast

On white

11.29
#5F1970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1970
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1970#FFFFFF#000000##FFFFFF
##5F19701.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003672
Deuteranopia (green-blind)
#1F3D6E
Tritanopia (blue-blind)
#5F2B43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1970;
/* rgb */ color: rgb(95, 25, 112);
/* oklch */ color: oklch(37.0% 0.149 318.9);
Tailwind
colors: {
  custom: {
    50: '#905e9a',
    500: '#5f1970',
    950: '#000000',
  },
}
SCSS
$custom: #5f1970;
$custom-light: #905e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1970",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 112
  },
  "hsl": {
    "h": 288.276,
    "s": 63.504,
    "l": 26.863
  },
  "oklch": {
    "l": 0.3697,
    "c": 0.14901,
    "h": 318.9
  },
  "luminance": 0.04298
}

Semantic roles & 50–950 ramp

primary
#5F1970
secondary
#53A540
accent
#E74162
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1970

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

Preview Lab → · Contrast checker → · Palette generator →

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