#5F0F5D#5F0F5D

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

Color values

HEX#5F0F5D
RGBrgb(95, 15, 93)
HSLhsl(302, 73%, 22%)
HSVhsv(302, 84%, 37%)
CMYKcmyk(0%, 84.2%, 2.1%, 62.7%)
CIE-LABlab(22.18, 43.67, -26.41)
CIE-LCHlch(22.18, 51.04, 328.84°)
OKLaboklab(34.82% 0.123 -0.0731)
OKLCHoklch(34.82% 0.143 329.3)
XYZxyz(6.8659, 3.5654, 10.6804)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F5D #0F5F11
analogous
#390F5F #5F0F5D #5F0F35
triadic
#5F0F5D #5D5F0F #0F5D5F
tetradic
#5F0F5D #5F390F #0F5F11 #0F355F
square
#5F0F5D #5F390F #0F5F11 #0F355F
split-complementary
#5F0F5D #355F0F #0F5F39
monochromatic
#1A041A #2A0729 #5F0F5D #941791 #C920C4

Accessibility & contrast

On white

12.26
#5F0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F0F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0F5D
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F5D#FFFFFF#000000##FFFFFF
##5F0F5D1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E5F
Deuteranopia (green-blind)
#28395B
Tritanopia (blue-blind)
#631C36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f0f5d;
/* rgb */ color: rgb(95, 15, 93);
/* oklch */ color: oklch(34.8% 0.143 329.3);
Tailwind
colors: {
  custom: {
    50: '#90598b',
    500: '#5f0f5d',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f5d;
$custom-light: #90598b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f5d",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 301.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34818,
    "c": 0.14308,
    "h": 329.3
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#5F0F5D
secondary
#329834
accent
#EF3D38
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F0F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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