#521147#521147

#521147 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.3% C 0.115 H 335.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#521147
RGBrgb(82, 17, 71)
HSLhsl(310, 66%, 19%)
HSVhsv(310, 79%, 32%)
CMYKcmyk(0%, 79.3%, 13.4%, 67.8%)
CIE-LABlab(18.58, 35.97, -17.39)
CIE-LCHlch(18.58, 39.95, 334.20°)
OKLaboklab(31.34% 0.1053 -0.0474)
OKLCHoklch(31.34% 0.115 335.8)
XYZxyz(4.8175, 2.6501, 6.2178)
Luminance0.0265 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521147 #11521C
analogous
#3D1152 #521147 #521127
triadic
#521147 #475211 #114752
tetradic
#521147 #523D11 #11521C #112752
square
#521147 #523D11 #11521C #112752
split-complementary
#521147 #275211 #11523D
monochromatic
#190516 #1F061B #521147 #851C73 #B7269F

Accessibility & contrast

On white

13.73
#521147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#521147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521147
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521147#FFFFFF#000000##FFFFFF
##5211471.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122748
Deuteranopia (green-blind)
#283145
Tritanopia (blue-blind)
#57162A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #521147;
/* rgb */ color: rgb(82, 17, 71);
/* oklch */ color: oklch(31.3% 0.115 335.8);
Tailwind
colors: {
  custom: {
    50: '#85577a',
    500: '#521147',
    950: '#000000',
  },
}
SCSS
$custom: #521147;
$custom-light: #85577a;
$custom-dark: #000000;
JSON
{
  "hex": "#521147",
  "rgb": {
    "r": 82,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 310.154,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31341,
    "c": 0.11549,
    "h": 335.8
  },
  "luminance": 0.0265
}

Semantic roles & 50–950 ramp

primary
#521147
secondary
#348B42
accent
#E95C3F
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #521147

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

Preview Lab → · Contrast checker → · Palette generator →

#521147 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva