#521228#521228

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

Color values

HEX#521228
RGBrgb(82, 18, 40)
HSLhsl(339, 64%, 20%)
HSVhsv(339, 78%, 32%)
CMYKcmyk(0%, 78%, 51.2%, 67.8%)
CIE-LABlab(17.37, 31.23, 2.63)
CIE-LCHlch(17.37, 31.34, 4.82°)
OKLaboklab(30.01% 0.0955 0.0071)
OKLCHoklch(30.01% 0.096 4.2)
XYZxyz(4.0793, 2.3802, 2.2517)
Luminance0.0238 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521228 #12523C
analogous
#521248 #521228 #521C12
triadic
#521228 #285212 #122852
tetradic
#521228 #485212 #12523C #1C1252
square
#521228 #485212 #12523C #1C1252
split-complementary
#521228 #12521C #124852
monochromatic
#19060C #200710 #521228 #841D40 #B62859

Accessibility & contrast

On white

14.23
#521228 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521228
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521228#FFFFFF#000000##FFFFFF
##5212281.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212329
Deuteranopia (green-blind)
#322F26
Tritanopia (blue-blind)
#5A071B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #521228;
/* rgb */ color: rgb(82, 18, 40);
/* oklch */ color: oklch(30.0% 0.096 4.2);
Tailwind
colors: {
  custom: {
    50: '#875661',
    500: '#521228',
    950: '#000000',
  },
}
SCSS
$custom: #521228;
$custom-light: #875661;
$custom-dark: #000000;
JSON
{
  "hex": "#521228",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 40
  },
  "hsl": {
    "h": 339.375,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30008,
    "c": 0.09576,
    "h": 4.2
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#521228
secondary
#358B6D
accent
#E7AE41
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #521228

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

Preview Lab → · Contrast checker → · Palette generator →

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