#5F0F52#5F0F52

#5F0F52 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.134 H 335.9°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#5F0F52
RGBrgb(95, 15, 82)
HSLhsl(310, 73%, 22%)
HSVhsv(310, 84%, 37%)
CMYKcmyk(0%, 84.2%, 13.7%, 62.7%)
CIE-LABlab(21.52, 41.82, -20.10)
CIE-LCHlch(21.52, 46.40, 334.34°)
OKLaboklab(34.14% 0.1227 -0.0549)
OKLCHoklch(34.14% 0.134 335.9)
XYZxyz(6.4132, 3.3843, 8.2965)
Luminance0.0338 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0F52 #0F5F1C
analogous
#440F5F #5F0F52 #5F0F2A
triadic
#5F0F52 #525F0F #0F525F
tetradic
#5F0F52 #5F440F #0F5F1C #0F2A5F
square
#5F0F52 #5F440F #0F5F1C #0F2A5F
split-complementary
#5F0F52 #2A5F0F #0F5F44
monochromatic
#1A0417 #2A0724 #5F0F52 #941780 #C920AD

Accessibility & contrast

On white

12.52
#5F0F52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F0F52
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0F52#FFFFFF#000000##FFFFFF
##5F0F521.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102C54
Deuteranopia (green-blind)
#2E3850
Tritanopia (blue-blind)
#641630
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f0f52;
/* rgb */ color: rgb(95, 15, 82);
/* oklch */ color: oklch(34.1% 0.134 335.9);
Tailwind
colors: {
  custom: {
    50: '#905983',
    500: '#5f0f52',
    950: '#000000',
  },
}
SCSS
$custom: #5f0f52;
$custom-light: #905983;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0f52",
  "rgb": {
    "r": 95,
    "g": 15,
    "b": 82
  },
  "hsl": {
    "h": 309.75,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34135,
    "c": 0.13445,
    "h": 335.9
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

primary
#5F0F52
secondary
#329842
accent
#EF5638
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F0F52

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

Preview Lab → · Contrast checker → · Palette generator →

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