#5F1574#5F1574

#5F1574 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.157 H 317.3°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#5F1574
RGBrgb(95, 21, 116)
HSLhsl(287, 69%, 27%)
HSVhsv(287, 82%, 45%)
CMYKcmyk(18.1%, 81.9%, 0%, 54.5%)
CIE-LABlab(24.42, 46.17, -37.81)
CIE-LCHlch(24.42, 59.67, 320.68°)
OKLaboklab(36.91% 0.1155 -0.1065)
OKLCHoklch(36.91% 0.157 317.3)
XYZxyz(8.1394, 4.2305, 16.9074)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1574 #2A7415
analogous
#301574 #5F1574 #74155A
triadic
#5F1574 #745F15 #15745F
tetradic
#5F1574 #743015 #2A7415 #155A74
square
#5F1574 #743015 #2A7415 #155A74
split-complementary
#5F1574 #5A7415 #157430
monochromatic
#15051A #350C40 #5F1574 #891EA8 #B22BD9

Accessibility & contrast

On white

11.38
#5F1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1574
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1574#FFFFFF#000000##FFFFFF
##5F15741.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#173C72
Tritanopia (blue-blind)
#5E2B45
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1574;
/* rgb */ color: rgb(95, 21, 116);
/* oklch */ color: oklch(36.9% 0.157 317.3);
Tailwind
colors: {
  custom: {
    50: '#905d9d',
    500: '#5f1574',
    950: '#000000',
  },
}
SCSS
$custom: #5f1574;
$custom-light: #905d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1574",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 286.737,
    "s": 69.343,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36909,
    "c": 0.15708,
    "h": 317.3
  },
  "luminance": 0.0423
}

Semantic roles & 50–950 ramp

primary
#5F1574
secondary
#53AA3B
accent
#EC3C63
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1574

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

Preview Lab → · Contrast checker → · Palette generator →

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