#5F0C52#5F0C52

#5F0C52 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.137 H 335.8°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#5F0C52
RGBrgb(95, 12, 82)
HSLhsl(309, 78%, 21%)
HSVhsv(309, 87%, 37%)
CMYKcmyk(0%, 87.4%, 13.7%, 62.7%)
CIE-LABlab(21.23, 42.67, -20.56)
CIE-LCHlch(21.23, 47.37, 334.28°)
OKLaboklab(33.93% 0.1253 -0.0562)
OKLCHoklch(33.93% 0.137 335.8)
XYZxyz(6.3739, 3.3056, 8.2834)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F0C52 #0C5F19
analogous
#420C5F #5F0C52 #5F0C28
triadic
#5F0C52 #525F0C #0C525F
tetradic
#5F0C52 #5F420C #0C5F19 #0C285F
square
#5F0C52 #5F420C #0C5F19 #0C285F
split-complementary
#5F0C52 #285F0C #0C5F42
monochromatic
#1B0317 #290523 #5F0C52 #951381 #CC1AB0

Accessibility & contrast

On white

12.64
#5F0C52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5F0C52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F0C52
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F0C52#FFFFFF#000000##FFFFFF
##5F0C521.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2B54
Deuteranopia (green-blind)
#2D3750
Tritanopia (blue-blind)
#64142F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f0c52;
/* rgb */ color: rgb(95, 12, 82);
/* oklch */ color: oklch(33.9% 0.137 335.8);
Tailwind
colors: {
  custom: {
    50: '#905883',
    500: '#5f0c52',
    950: '#000000',
  },
}
SCSS
$custom: #5f0c52;
$custom-light: #905883;
$custom-dark: #000000;
JSON
{
  "hex": "#5f0c52",
  "rgb": {
    "r": 95,
    "g": 12,
    "b": 82
  },
  "hsl": {
    "h": 309.398,
    "s": 77.57,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33926,
    "c": 0.13728,
    "h": 335.8
  },
  "luminance": 0.03305
}

Semantic roles & 50–950 ramp

primary
#5F0C52
secondary
#2D993E
accent
#F45234
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F0C52

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

Preview Lab → · Contrast checker → · Palette generator →

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