#5F1474#5F1474

#5F1474 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.158 H 317.4°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5F1474
RGBrgb(95, 20, 116)
HSLhsl(287, 71%, 27%)
HSVhsv(287, 83%, 45%)
CMYKcmyk(18.1%, 82.8%, 0%, 54.5%)
CIE-LABlab(24.30, 46.50, -38.00)
CIE-LCHlch(24.30, 60.05, 320.75°)
OKLaboklab(36.83% 0.1163 -0.107)
OKLCHoklch(36.83% 0.158 317.4)
XYZxyz(8.1214, 4.1945, 16.9014)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1474 #297414
analogous
#2F1474 #5F1474 #741459
triadic
#5F1474 #745F14 #14745F
tetradic
#5F1474 #742F14 #297414 #145974
square
#5F1474 #742F14 #297414 #145974
split-complementary
#5F1474 #597414 #14742F
monochromatic
#15051A #340B40 #5F1474 #8A1DA8 #B328DA

Accessibility & contrast

On white

11.42
#5F1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F1474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1474
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1474#FFFFFF#000000##FFFFFF
##5F14741.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#163C72
Tritanopia (blue-blind)
#5E2A44
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1474;
/* rgb */ color: rgb(95, 20, 116);
/* oklch */ color: oklch(36.8% 0.158 317.4);
Tailwind
colors: {
  custom: {
    50: '#905c9d',
    500: '#5f1474',
    950: '#000000',
  },
}
SCSS
$custom: #5f1474;
$custom-light: #905c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1474",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 286.875,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36828,
    "c": 0.15808,
    "h": 317.4
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#5F1474
secondary
#52AA3A
accent
#ED3A62
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1474

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

Preview Lab → · Contrast checker → · Palette generator →

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