#5F0D56#5F0D56

#5F0D56 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.139 H 333.4°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#5F0D56
RGBrgb(95, 13, 86)
HSLhsl(307, 76%, 21%)
HSVhsv(307, 86%, 37%)
CMYKcmyk(0%, 86.3%, 9.5%, 62.7%)
CIE-LABlab(21.55, 43.05, -22.73)
CIE-LCHlch(21.55, 48.68, 332.16°)
OKLaboklab(34.23% 0.1246 -0.0625)
OKLCHoklch(34.23% 0.139 333.4)
XYZxyz(6.5430, 3.3932, 9.1127)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0D56 #0D5F16
analogous
#3F0D5F #5F0D56 #5F0D2D
triadic
#5F0D56 #565F0D #0D565F
tetradic
#5F0D56 #5F3F0D #0D5F16 #0D2D5F
square
#5F0D56 #5F3F0D #0D5F16 #0D2D5F
split-complementary
#5F0D56 #2D5F0D #0D5F3F
monochromatic
#1B0418 #290625 #5F0D56 #951487 #CB1CB7

Accessibility & contrast

On white

12.51
#5F0D56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#5F0D56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0D56
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0D56#FFFFFF#000000##FFFFFF
##5F0D561.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092C58
Deuteranopia (green-blind)
#2B3854
Tritanopia (blue-blind)
#641732
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f0d56;
/* rgb */ color: rgb(95, 13, 86);
/* oklch */ color: oklch(34.2% 0.139 333.4);
Tailwind
colors: {
  custom: {
    50: '#905886',
    500: '#5f0d56',
    950: '#000000',
  },
}
SCSS
$custom: #5f0d56;
$custom-light: #905886;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0d56",
  "rgb": {
    "r": 95,
    "g": 13,
    "b": 86
  },
  "hsl": {
    "h": 306.585,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34234,
    "c": 0.13941,
    "h": 333.4
  },
  "luminance": 0.03393
}

Semantic roles & 50–950 ramp

primary
#5F0D56
secondary
#2F993A
accent
#F34A35
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0D56

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

Preview Lab → · Contrast checker → · Palette generator →

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