#521828#521828

#521828 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 30.8% C 0.087 H 7.0°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#521828
RGBrgb(82, 24, 40)
HSLhsl(343, 55%, 21%)
HSVhsv(343, 71%, 32%)
CMYKcmyk(0%, 70.7%, 51.2%, 67.8%)
CIE-LABlab(18.37, 28.48, 4.06)
CIE-LCHlch(18.37, 28.77, 8.12°)
OKLaboklab(30.75% 0.0867 0.0107)
OKLCHoklch(30.75% 0.087 7)
XYZxyz(4.1896, 2.6008, 2.2885)
Luminance0.0260 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521828 #185242
analogous
#521845 #521828 #522518
triadic
#521828 #285218 #182852
tetradic
#521828 #455218 #185242 #251852
square
#521828 #455218 #185242 #251852
split-complementary
#521828 #185225 #184552
monochromatic
#18070C #230A11 #521828 #81263F #B13456

Accessibility & contrast

On white

13.82
#521828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#521828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521828
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521828#FFFFFF#000000##FFFFFF
##5218281.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252628
Deuteranopia (green-blind)
#343127
Tritanopia (blue-blind)
#5A101E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #521828;
/* rgb */ color: rgb(82, 24, 40);
/* oklch */ color: oklch(30.8% 0.087 7.0);
Tailwind
colors: {
  custom: {
    50: '#865961',
    500: '#521828',
    950: '#000000',
  },
}
SCSS
$custom: #521828;
$custom-light: #865961;
$custom-dark: #000000;
JSON
{
  "hex": "#521828",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 40
  },
  "hsl": {
    "h": 343.448,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30751,
    "c": 0.08739,
    "h": 7
  },
  "luminance": 0.026
}

Semantic roles & 50–950 ramp

primary
#521828
secondary
#3D8974
accent
#DEB54A
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0405
muted
#7D7979

Preview Lab

Preview with #521828

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

Preview Lab → · Contrast checker → · Palette generator →

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