#521226#521226

#521226 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 29.9% C 0.095 H 6.3°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#521226
RGBrgb(82, 18, 38)
HSLhsl(341, 64%, 20%)
HSVhsv(341, 78%, 32%)
CMYKcmyk(0%, 78%, 53.7%, 67.8%)
CIE-LABlab(17.31, 31.03, 3.98)
CIE-LCHlch(17.31, 31.28, 7.32°)
OKLaboklab(29.94% 0.0947 0.0104)
OKLCHoklch(29.94% 0.095 6.3)
XYZxyz(4.0462, 2.3669, 2.0771)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521226 #12523E
analogous
#521246 #521226 #521E12
triadic
#521226 #265212 #122652
tetradic
#521226 #465212 #12523E #1E1252
square
#521226 #465212 #12523E #1E1252
split-complementary
#521226 #12521E #124652
monochromatic
#19060C #20070F #521226 #841D3D #B62855

Accessibility & contrast

On white

14.25
#521226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#521226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521226
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521226#FFFFFF#000000##FFFFFF
##5212261.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212226
Deuteranopia (green-blind)
#322F24
Tritanopia (blue-blind)
#5A061A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #521226;
/* rgb */ color: rgb(82, 18, 38);
/* oklch */ color: oklch(29.9% 0.095 6.3);
Tailwind
colors: {
  custom: {
    50: '#875660',
    500: '#521226',
    950: '#000000',
  },
}
SCSS
$custom: #521226;
$custom-light: #875660;
$custom-dark: #000000;
JSON
{
  "hex": "#521226",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 38
  },
  "hsl": {
    "h": 341.25,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29942,
    "c": 0.09522,
    "h": 6.3
  },
  "luminance": 0.02366
}

Semantic roles & 50–950 ramp

primary
#521226
secondary
#358B70
accent
#E7B341
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0304
muted
#7D7879

Preview Lab

Preview with #521226

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

Preview Lab → · Contrast checker → · Palette generator →

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