#5F2154#5F2154

#5F2154 is a dark, moderate pink. Relative luminance 0.042; OKLCH L 36.1% C 0.112 H 335.2°. Best body text is #FFFFFF at 11.46:1 contrast (WCAG AA passes).

Color values

HEX#5F2154
RGBrgb(95, 33, 84)
HSLhsl(311, 48%, 25%)
HSVhsv(311, 65%, 37%)
CMYKcmyk(0%, 65.3%, 11.6%, 62.7%)
CIE-LABlab(24.20, 34.95, -17.26)
CIE-LCHlch(24.20, 38.98, 333.72°)
OKLaboklab(36.11% 0.1016 -0.0469)
OKLCHoklch(36.11% 0.112 335.2)
XYZxyz(6.8635, 4.1612, 8.8275)
Luminance0.0416 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F2154 #215F2C
analogous
#4B215F #5F2154 #5F2135
triadic
#5F2154 #545F21 #21545F
tetradic
#5F2154 #5F4B21 #215F2C #21355F
square
#5F2154 #5F4B21 #215F2C #21355F
split-complementary
#5F2154 #355F21 #215F4B
monochromatic
#170814 #32112C #5F2154 #8C317C #BA41A4

Accessibility & contrast

On white

11.46
#5F2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F2154
11.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F2154#FFFFFF#000000##FFFFFF
##5F21541.0011.461.8311.46
#FFFFFF11.461.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213456
Deuteranopia (green-blind)
#343D52
Tritanopia (blue-blind)
#642537
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f2154;
/* rgb */ color: rgb(95, 33, 84);
/* oklch */ color: oklch(36.1% 0.112 335.2);
Tailwind
colors: {
  custom: {
    50: '#8f6184',
    500: '#5f2154',
    950: '#000000',
  },
}
SCSS
$custom: #5f2154;
$custom-light: #8f6184;
$custom-dark: #000000;
JSON
{
  "hex": "#5f2154",
  "rgb": {
    "r": 95,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 310.645,
    "s": 48.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3611,
    "c": 0.11194,
    "h": 335.2
  },
  "luminance": 0.04161
}

Semantic roles & 50–950 ramp

primary
#5F2154
secondary
#499356
accent
#D86850
background
#F8F5F8
surface
#F0EAEF
border
#CBC6CA
text
#0D050B
muted
#7D797C

Preview Lab

Preview with #5F2154

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

Preview Lab → · Contrast checker → · Palette generator →

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