#5F1457#5F1457

#5F1457 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.133 H 332.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#5F1457
RGBrgb(95, 20, 87)
HSLhsl(306, 65%, 23%)
HSVhsv(306, 79%, 37%)
CMYKcmyk(0%, 78.9%, 8.4%, 62.7%)
CIE-LABlab(22.38, 41.01, -22.10)
CIE-LCHlch(22.38, 46.59, 331.68°)
OKLaboklab(34.84% 0.1182 -0.0607)
OKLCHoklch(34.84% 0.133 332.8)
XYZxyz(6.6898, 3.6219, 9.3617)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1457 #145F1C
analogous
#41145F #5F1457 #5F1432
triadic
#5F1457 #575F14 #14575F
tetradic
#5F1457 #5F4114 #145F1C #14325F
square
#5F1457 #5F4114 #145F1C #14325F
split-complementary
#5F1457 #325F14 #145F41
monochromatic
#190517 #2C0929 #5F1457 #921F85 #C429B4

Accessibility & contrast

On white

12.18
#5F1457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F1457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1457
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1457#FFFFFF#000000##FFFFFF
##5F14571.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102F59
Deuteranopia (green-blind)
#2D3955
Tritanopia (blue-blind)
#641C34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1457;
/* rgb */ color: rgb(95, 20, 87);
/* oklch */ color: oklch(34.8% 0.133 332.8);
Tailwind
colors: {
  custom: {
    50: '#8f5b86',
    500: '#5f1457',
    950: '#000000',
  },
}
SCSS
$custom: #5f1457;
$custom-light: #8f5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1457",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 306.4,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34844,
    "c": 0.13288,
    "h": 332.8
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#5F1457
secondary
#389742
accent
#E85240
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1457

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

Preview Lab → · Contrast checker → · Palette generator →

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