#5F2152#5F2152

#5F2152 is a dark, moderate pink. Relative luminance 0.041; OKLCH L 36.0% C 0.110 H 336.7°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5F2152
RGBrgb(95, 33, 82)
HSLhsl(313, 48%, 25%)
HSVhsv(313, 65%, 37%)
CMYKcmyk(0%, 65.3%, 13.7%, 62.7%)
CIE-LABlab(24.10, 34.59, -16.08)
CIE-LCHlch(24.10, 38.14, 335.07°)
OKLaboklab(36% 0.1013 -0.0436)
OKLCHoklch(36% 0.11 336.7)
XYZxyz(6.7862, 4.1304, 8.4208)
Luminance0.0413 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2152 #215F2E
analogous
#4D215F #5F2152 #5F2133
triadic
#5F2152 #525F21 #21525F
tetradic
#5F2152 #5F4D21 #215F2E #21335F
square
#5F2152 #5F4D21 #215F2E #21335F
split-complementary
#5F2152 #335F21 #215F4D
monochromatic
#170814 #32112B #5F2152 #8C3179 #BA41A0

Accessibility & contrast

On white

11.50
#5F2152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5F2152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F2152
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2152#FFFFFF#000000##FFFFFF
##5F21521.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223354
Deuteranopia (green-blind)
#353D50
Tritanopia (blue-blind)
#642436
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f2152;
/* rgb */ color: rgb(95, 33, 82);
/* oklch */ color: oklch(36.0% 0.110 336.7);
Tailwind
colors: {
  custom: {
    50: '#8f6182',
    500: '#5f2152',
    950: '#000000',
  },
}
SCSS
$custom: #5f2152;
$custom-light: #8f6182;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2152",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 82
  },
  "hsl": {
    "h": 312.581,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36004,
    "c": 0.11024,
    "h": 336.7
  },
  "luminance": 0.0413
}

Semantic roles & 50–950 ramp

primary
#5F2152
secondary
#499358
accent
#D86C50
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0D050A
muted
#7D797C

Preview Lab

Preview with #5F2152

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

Preview Lab → · Contrast checker → · Palette generator →

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