#521229#521229

#521229 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.0% C 0.096 H 3.2°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#521229
RGBrgb(82, 18, 41)
HSLhsl(338, 64%, 20%)
HSVhsv(338, 78%, 32%)
CMYKcmyk(0%, 78%, 50%, 67.8%)
CIE-LABlab(17.40, 31.34, 1.96)
CIE-LCHlch(17.40, 31.40, 3.58°)
OKLaboklab(30.04% 0.0959 0.0054)
OKLCHoklch(30.04% 0.096 3.2)
XYZxyz(4.0965, 2.3871, 2.3424)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521229 #12523B
analogous
#521249 #521229 #521B12
triadic
#521229 #295212 #122952
tetradic
#521229 #495212 #12523B #1B1252
square
#521229 #495212 #12523B #1B1252
split-complementary
#521229 #12521B #124952
monochromatic
#19060D #200710 #521229 #841D42 #B6285B

Accessibility & contrast

On white

14.21
#521229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#521229 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521229
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521229#FFFFFF#000000##FFFFFF
##5212291.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20232A
Deuteranopia (green-blind)
#312F27
Tritanopia (blue-blind)
#5A081C
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #521229;
/* rgb */ color: rgb(82, 18, 41);
/* oklch */ color: oklch(30.0% 0.096 3.2);
Tailwind
colors: {
  custom: {
    50: '#865662',
    500: '#521229',
    950: '#000000',
  },
}
SCSS
$custom: #521229;
$custom-light: #865662;
$custom-dark: #000000;
JSON
{
  "hex": "#521229",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 41
  },
  "hsl": {
    "h": 338.438,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30043,
    "c": 0.09607,
    "h": 3.2
  },
  "luminance": 0.02387
}

Semantic roles & 50–950 ramp

primary
#521229
secondary
#358B6C
accent
#E7AB41
background
#F8F5F5
surface
#F0E9EA
border
#CBC5C6
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #521229

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

Preview Lab → · Contrast checker → · Palette generator →

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