#5F0F5C#5F0F5C

#5F0F5C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.142 H 329.8°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#5F0F5C
RGBrgb(95, 15, 92)
HSLhsl(302, 73%, 22%)
HSVhsv(302, 84%, 37%)
CMYKcmyk(0%, 84.2%, 3.2%, 62.7%)
CIE-LABlab(22.12, 43.50, -25.85)
CIE-LCHlch(22.12, 50.60, 329.28°)
OKLaboklab(34.75% 0.123 -0.0715)
OKLCHoklch(34.75% 0.142 329.8)
XYZxyz(6.8219, 3.5478, 10.4486)
Luminance0.0355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F5C #0F5F12
analogous
#3A0F5F #5F0F5C #5F0F34
triadic
#5F0F5C #5C5F0F #0F5C5F
tetradic
#5F0F5C #5F3A0F #0F5F12 #0F345F
square
#5F0F5C #5F3A0F #0F5F12 #0F345F
split-complementary
#5F0F5C #345F0F #0F5F3A
monochromatic
#1A041A #2A0729 #5F0F5C #94178F #C920C2

Accessibility & contrast

On white

12.29
#5F0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F0F5C
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F5C#FFFFFF#000000##FFFFFF
##5F0F5C1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022E5E
Deuteranopia (green-blind)
#29395A
Tritanopia (blue-blind)
#631B36
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f0f5c;
/* rgb */ color: rgb(95, 15, 92);
/* oklch */ color: oklch(34.8% 0.142 329.8);
Tailwind
colors: {
  custom: {
    50: '#90598a',
    500: '#5f0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f5c;
$custom-light: #90598a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f5c",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 302.25,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34753,
    "c": 0.14228,
    "h": 329.8
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#5F0F5C
secondary
#329835
accent
#EF3F38
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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