#5F1570#5F1570

#5F1570 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.153 H 319.2°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#5F1570
RGBrgb(95, 21, 112)
HSLhsl(289, 68%, 26%)
HSVhsv(289, 81%, 44%)
CMYKcmyk(15.2%, 81.2%, 0%, 56.1%)
CIE-LABlab(24.13, 45.35, -35.71)
CIE-LCHlch(24.13, 57.72, 321.78°)
OKLaboklab(36.61% 0.1161 -0.1003)
OKLCHoklch(36.61% 0.153 319.2)
XYZxyz(7.9117, 4.1395, 15.7083)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1570 #267015
analogous
#311570 #5F1570 #701553
triadic
#5F1570 #705F15 #15705F
tetradic
#5F1570 #703115 #267015 #155370
square
#5F1570 #703115 #267015 #155370
split-complementary
#5F1570 #537015 #157031
monochromatic
#16051A #330B3C #5F1570 #8B1FA4 #B629D7

Accessibility & contrast

On white

11.49
#5F1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1570
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1570#FFFFFF#000000##FFFFFF
##5F15701.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#1C3C6E
Tritanopia (blue-blind)
#5F2942
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1570;
/* rgb */ color: rgb(95, 21, 112);
/* oklch */ color: oklch(36.6% 0.153 319.2);
Tailwind
colors: {
  custom: {
    50: '#905c9a',
    500: '#5f1570',
    950: '#000000',
  },
}
SCSS
$custom: #5f1570;
$custom-light: #905c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1570",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 288.791,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.3661,
    "c": 0.15344,
    "h": 319.2
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#5F1570
secondary
#4FA63B
accent
#EB3D5D
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1570

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

Preview Lab → · Contrast checker → · Palette generator →

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