#5F1052#5F1052

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

Color values

HEX#5F1052
RGBrgb(95, 16, 82)
HSLhsl(310, 71%, 22%)
HSVhsv(310, 83%, 37%)
CMYKcmyk(0%, 83.2%, 13.7%, 62.7%)
CIE-LABlab(21.63, 41.52, -19.93)
CIE-LCHlch(21.63, 46.05, 334.36°)
OKLaboklab(34.21% 0.1218 -0.0544)
OKLCHoklch(34.21% 0.133 335.9)
XYZxyz(6.4277, 3.4133, 8.3013)
Luminance0.0341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1052 #105F1D
analogous
#45105F #5F1052 #5F102B
triadic
#5F1052 #525F10 #10525F
tetradic
#5F1052 #5F4510 #105F1D #102B5F
square
#5F1052 #5F4510 #105F1D #102B5F
split-complementary
#5F1052 #2B5F10 #105F45
monochromatic
#1A0417 #2B0725 #5F1052 #93197F #C822AC

Accessibility & contrast

On white

12.48
#5F1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1052
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1052#FFFFFF#000000##FFFFFF
##5F10521.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1052;
/* rgb */ color: rgb(95, 16, 82);
/* oklch */ color: oklch(34.2% 0.133 335.9);
Tailwind
colors: {
  custom: {
    50: '#8f5983',
    500: '#5f1052',
    950: '#000000',
  },
}
SCSS
$custom: #5f1052;
$custom-light: #8f5983;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1052",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 309.873,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.34212,
    "c": 0.13342,
    "h": 335.9
  },
  "luminance": 0.03413
}

Semantic roles & 50–950 ramp

primary
#5F1052
secondary
#339844
accent
#EE583A
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040A
muted
#7E797C

Preview Lab

Preview with #5F1052

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

Preview Lab → · Contrast checker → · Palette generator →

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