#5F0D5C#5F0D5C

#5F0D5C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.144 H 329.9°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#5F0D5C
RGBrgb(95, 13, 92)
HSLhsl(302, 76%, 21%)
HSVhsv(302, 86%, 37%)
CMYKcmyk(0%, 86.3%, 3.2%, 62.7%)
CIE-LABlab(21.92, 44.06, -26.16)
CIE-LCHlch(21.92, 51.24, 329.30°)
OKLaboklab(34.62% 0.1246 -0.0724)
OKLCHoklch(34.62% 0.144 329.9)
XYZxyz(6.7950, 3.4940, 10.4397)
Luminance0.0349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0D5C #0D5F10
analogous
#390D5F #5F0D5C #5F0D33
triadic
#5F0D5C #5C5F0D #0D5C5F
tetradic
#5F0D5C #5F390D #0D5F10 #0D335F
square
#5F0D5C #5F390D #0D5F10 #0D335F
split-complementary
#5F0D5C #335F0D #0D5F39
monochromatic
#1B041A #290628 #5F0D5C #951490 #CB1CC4

Accessibility & contrast

On white

12.36
#5F0D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F0D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0D5C
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0D5C#FFFFFF#000000##FFFFFF
##5F0D5C1.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5E
Deuteranopia (green-blind)
#28385A
Tritanopia (blue-blind)
#631A35
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f0d5c;
/* rgb */ color: rgb(95, 13, 92);
/* oklch */ color: oklch(34.6% 0.144 329.9);
Tailwind
colors: {
  custom: {
    50: '#90588a',
    500: '#5f0d5c',
    950: '#000000',
  },
}
SCSS
$custom: #5f0d5c;
$custom-light: #90588a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0d5c",
  "rgb": {
    "r": 95,
    "g": 13,
    "b": 92
  },
  "hsl": {
    "h": 302.195,
    "s": 75.926,
    "l": 21.176
  },
  "oklch": {
    "l": 0.34615,
    "c": 0.14411,
    "h": 329.9
  },
  "luminance": 0.03493
}

Semantic roles & 50–950 ramp

primary
#5F0D5C
secondary
#2F9933
accent
#F33C35
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F0D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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