#5F1870#5F1870

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

Color values

HEX#5F1870
RGBrgb(95, 24, 112)
HSLhsl(288, 65%, 27%)
HSVhsv(288, 79%, 44%)
CMYKcmyk(15.2%, 78.6%, 0%, 56.1%)
CIE-LABlab(24.50, 44.27, -35.11)
CIE-LCHlch(24.50, 56.50, 321.59°)
OKLaboklab(36.88% 0.1133 -0.0986)
OKLCHoklch(36.88% 0.15 319)
XYZxyz(7.9702, 4.2564, 15.7278)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1870 #297018
analogous
#331870 #5F1870 #701855
triadic
#5F1870 #705F18 #18705F
tetradic
#5F1870 #703318 #297018 #185570
square
#5F1870 #703318 #297018 #185570
split-complementary
#5F1870 #557018 #187033
monochromatic
#150519 #340D3E #5F1870 #8A23A2 #B330D3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1870#FFFFFF#000000##FFFFFF
##5F18701.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)
#003672
Deuteranopia (green-blind)
#1E3C6E
Tritanopia (blue-blind)
#5F2A43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1870;
/* rgb */ color: rgb(95, 24, 112);
/* oklch */ color: oklch(36.9% 0.150 319.0);
Tailwind
colors: {
  custom: {
    50: '#905e9a',
    500: '#5f1870',
    950: '#000000',
  },
}
SCSS
$custom: #5f1870;
$custom-light: #905e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1870",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 112
  },
  "hsl": {
    "h": 288.409,
    "s": 64.706,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36875,
    "c": 0.15017,
    "h": 319
  },
  "luminance": 0.04256
}

Semantic roles & 50–950 ramp

primary
#5F1870
secondary
#52A53E
accent
#E84060
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1870

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

Preview Lab → · Contrast checker → · Palette generator →

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