#5F0D5A#5F0D5A

#5F0D5A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.143 H 331.0°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#5F0D5A
RGBrgb(95, 13, 90)
HSLhsl(304, 76%, 21%)
HSVhsv(304, 86%, 37%)
CMYKcmyk(0%, 86.3%, 5.3%, 62.7%)
CIE-LABlab(21.80, 43.71, -25.02)
CIE-LCHlch(21.80, 50.37, 330.21°)
OKLaboklab(34.49% 0.1247 -0.0691)
OKLCHoklch(34.49% 0.143 331)
XYZxyz(6.7087, 3.4595, 9.9853)
Luminance0.0346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0D5A #0D5F12
analogous
#3B0D5F #5F0D5A #5F0D31
triadic
#5F0D5A #5A5F0D #0D5A5F
tetradic
#5F0D5A #5F3B0D #0D5F12 #0D315F
square
#5F0D5A #5F3B0D #0D5F12 #0D315F
split-complementary
#5F0D5A #315F0D #0D5F3B
monochromatic
#1B0419 #290627 #5F0D5A #95148D #CB1CC0

Accessibility & contrast

On white

12.41
#5F0D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5F0D5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0D5A
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0D5A#FFFFFF#000000##FFFFFF
##5F0D5A1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022D5C
Deuteranopia (green-blind)
#293858
Tritanopia (blue-blind)
#631934
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f0d5a;
/* rgb */ color: rgb(95, 13, 90);
/* oklch */ color: oklch(34.5% 0.143 331.0);
Tailwind
colors: {
  custom: {
    50: '#905889',
    500: '#5f0d5a',
    950: '#000000',
  },
}
SCSS
$custom: #5f0d5a;
$custom-light: #905889;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0d5a",
  "rgb": {
    "r": 95,
    "g": 13,
    "b": 90
  },
  "hsl": {
    "h": 303.659,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34485,
    "c": 0.14253,
    "h": 331
  },
  "luminance": 0.03459
}

Semantic roles & 50–950 ramp

primary
#5F0D5A
secondary
#2F9935
accent
#F34135
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F0D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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