#5F1476#5F1476

#5F1476 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 37.0% C 0.160 H 316.5°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#5F1476
RGBrgb(95, 20, 118)
HSLhsl(286, 71%, 27%)
HSVhsv(286, 83%, 46%)
CMYKcmyk(19.5%, 83.1%, 0%, 53.7%)
CIE-LABlab(24.45, 46.91, -39.03)
CIE-LCHlch(24.45, 61.03, 320.24°)
OKLaboklab(36.98% 0.116 -0.1101)
OKLCHoklch(36.98% 0.16 316.5)
XYZxyz(8.2390, 4.2416, 17.5207)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1476 #2B7614
analogous
#2E1476 #5F1476 #76145C
triadic
#5F1476 #765F14 #14765F
tetradic
#5F1476 #762E14 #2B7614 #145C76
square
#5F1476 #762E14 #2B7614 #145C76
split-complementary
#5F1476 #5C7614 #14762E
monochromatic
#15041A #350B42 #5F1476 #891DAA #B12ADB

Accessibility & contrast

On white

11.36
#5F1476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1476
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1476#FFFFFF#000000##FFFFFF
##5F14761.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#143C74
Tritanopia (blue-blind)
#5E2B46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1476;
/* rgb */ color: rgb(95, 20, 118);
/* oklch */ color: oklch(37.0% 0.160 316.5);
Tailwind
colors: {
  custom: {
    50: '#905c9e',
    500: '#5f1476',
    950: '#000000',
  },
}
SCSS
$custom: #5f1476;
$custom-light: #905c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1476",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 285.918,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.36981,
    "c": 0.1599,
    "h": 316.5
  },
  "luminance": 0.04241
}

Semantic roles & 50–950 ramp

primary
#5F1476
secondary
#55AC3A
accent
#EE3A64
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1476

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

Preview Lab → · Contrast checker → · Palette generator →

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