#5F0D54#5F0D54

#5F0D54 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.138 H 334.6°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#5F0D54
RGBrgb(95, 13, 84)
HSLhsl(308, 76%, 21%)
HSVhsv(308, 86%, 37%)
CMYKcmyk(0%, 86.3%, 11.6%, 62.7%)
CIE-LABlab(21.44, 42.72, -21.58)
CIE-LCHlch(21.44, 47.86, 333.20°)
OKLaboklab(34.11% 0.1246 -0.0591)
OKLCHoklch(34.11% 0.138 334.6)
XYZxyz(6.4636, 3.3614, 8.6942)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0D54 #0D5F18
analogous
#410D5F #5F0D54 #5F0D2B
triadic
#5F0D54 #545F0D #0D545F
tetradic
#5F0D54 #5F410D #0D5F18 #0D2B5F
square
#5F0D54 #5F410D #0D5F18 #0D2B5F
split-complementary
#5F0D54 #2B5F0D #0D5F41
monochromatic
#1B0418 #290624 #5F0D54 #951484 #CB1CB3

Accessibility & contrast

On white

12.56
#5F0D54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5F0D54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0D54
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0D54#FFFFFF#000000##FFFFFF
##5F0D541.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2C56
Deuteranopia (green-blind)
#2C3852
Tritanopia (blue-blind)
#641631
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f0d54;
/* rgb */ color: rgb(95, 13, 84);
/* oklch */ color: oklch(34.1% 0.138 334.6);
Tailwind
colors: {
  custom: {
    50: '#905884',
    500: '#5f0d54',
    950: '#000000',
  },
}
SCSS
$custom: #5f0d54;
$custom-light: #905884;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0d54",
  "rgb": {
    "r": 95,
    "g": 13,
    "b": 84
  },
  "hsl": {
    "h": 308.049,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34112,
    "c": 0.13788,
    "h": 334.6
  },
  "luminance": 0.03361
}

Semantic roles & 50–950 ramp

primary
#5F0D54
secondary
#2F993D
accent
#F34F35
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0D54

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

Preview Lab → · Contrast checker → · Palette generator →

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