#5F1370#5F1370

#5F1370 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.4% C 0.155 H 319.3°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#5F1370
RGBrgb(95, 19, 112)
HSLhsl(289, 71%, 26%)
HSVhsv(289, 83%, 44%)
CMYKcmyk(15.2%, 83%, 0%, 56.1%)
CIE-LABlab(23.90, 46.01, -36.08)
CIE-LCHlch(23.90, 58.47, 321.90°)
OKLaboklab(36.45% 0.1178 -0.1014)
OKLCHoklch(36.45% 0.155 319.3)
XYZxyz(7.8764, 4.0689, 15.6966)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1370 #247013
analogous
#301370 #5F1370 #701352
triadic
#5F1370 #705F13 #13705F
tetradic
#5F1370 #703013 #247013 #135270
square
#5F1370 #703013 #247013 #135270
split-complementary
#5F1370 #527013 #137030
monochromatic
#16041A #330A3C #5F1370 #8B1CA4 #B825D9

Accessibility & contrast

On white

11.58
#5F1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5F1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1370
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1370#FFFFFF#000000##FFFFFF
##5F13701.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#1B3B6E
Tritanopia (blue-blind)
#5F2842
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1370;
/* rgb */ color: rgb(95, 19, 112);
/* oklch */ color: oklch(36.4% 0.155 319.3);
Tailwind
colors: {
  custom: {
    50: '#905c9a',
    500: '#5f1370',
    950: '#000000',
  },
}
SCSS
$custom: #5f1370;
$custom-light: #905c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1370",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 289.032,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36448,
    "c": 0.15545,
    "h": 319.3
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#5F1370
secondary
#4CA738
accent
#EE3A5B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1370

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

Preview Lab → · Contrast checker → · Palette generator →

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