#5F1456#5F1456

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

Color values

HEX#5F1456
RGBrgb(95, 20, 86)
HSLhsl(307, 65%, 23%)
HSVhsv(307, 79%, 37%)
CMYKcmyk(0%, 78.9%, 9.5%, 62.7%)
CIE-LABlab(22.32, 40.84, -21.52)
CIE-LCHlch(22.32, 46.16, 332.21°)
OKLaboklab(34.78% 0.1182 -0.059)
OKLCHoklch(34.78% 0.132 333.5)
XYZxyz(6.6492, 3.6057, 9.1481)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1456 #145F1D
analogous
#42145F #5F1456 #5F1431
triadic
#5F1456 #565F14 #14565F
tetradic
#5F1456 #5F4214 #145F1D #14315F
square
#5F1456 #5F4214 #145F1D #14315F
split-complementary
#5F1456 #315F14 #145F42
monochromatic
#190517 #2C0928 #5F1456 #921F84 #C429B2

Accessibility & contrast

On white

12.20
#5F1456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1456
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1456#FFFFFF#000000##FFFFFF
##5F14561.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112E58
Deuteranopia (green-blind)
#2E3954
Tritanopia (blue-blind)
#641B33
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1456;
/* rgb */ color: rgb(95, 20, 86);
/* oklch */ color: oklch(34.8% 0.132 333.5);
Tailwind
colors: {
  custom: {
    50: '#8f5b86',
    500: '#5f1456',
    950: '#000000',
  },
}
SCSS
$custom: #5f1456;
$custom-light: #8f5b86;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1456",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 307.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.34784,
    "c": 0.13208,
    "h": 333.5
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#5F1456
secondary
#389744
accent
#E85440
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1456

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

Preview Lab → · Contrast checker → · Palette generator →

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