#521231#521231

#521231 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.3% C 0.099 H 355.1°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#521231
RGBrgb(82, 18, 49)
HSLhsl(331, 64%, 20%)
HSVhsv(331, 78%, 32%)
CMYKcmyk(0%, 78%, 40.2%, 67.8%)
CIE-LABlab(17.68, 32.28, -3.34)
CIE-LCHlch(17.68, 32.46, 354.08°)
OKLaboklab(30.35% 0.099 -0.0084)
OKLCHoklch(30.35% 0.099 355.1)
XYZxyz(4.2506, 2.4487, 3.1539)
Luminance0.0245 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521231 #125233
analogous
#521251 #521231 #521312
triadic
#521231 #315212 #123152
tetradic
#521231 #515212 #125233 #131252
square
#521231 #515212 #125233 #131252
split-complementary
#521231 #125213 #125152
monochromatic
#19060F #200713 #521231 #841D4F #B6286D

Accessibility & contrast

On white

14.10
#521231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#521231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #521231
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521231#FFFFFF#000000##FFFFFF
##5212311.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2432
Deuteranopia (green-blind)
#303030
Tritanopia (blue-blind)
#590C1F
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #521231;
/* rgb */ color: rgb(82, 18, 49);
/* oklch */ color: oklch(30.3% 0.099 355.1);
Tailwind
colors: {
  custom: {
    50: '#865669',
    500: '#521231',
    950: '#000000',
  },
}
SCSS
$custom: #521231;
$custom-light: #865669;
$custom-dark: #000000;
JSON
{
  "hex": "#521231",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 330.938,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30346,
    "c": 0.09933,
    "h": 355.1
  },
  "luminance": 0.02448
}

Semantic roles & 50–950 ramp

primary
#521231
secondary
#358B61
accent
#E79641
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0306
muted
#7D787A

Preview Lab

Preview with #521231

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

Preview Lab → · Contrast checker → · Palette generator →

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