#521227#521227

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

Color values

HEX#521227
RGBrgb(82, 18, 39)
HSLhsl(340, 64%, 20%)
HSVhsv(340, 78%, 32%)
CMYKcmyk(0%, 78%, 52.4%, 67.8%)
CIE-LABlab(17.34, 31.13, 3.31)
CIE-LCHlch(17.34, 31.30, 6.07°)
OKLaboklab(29.98% 0.0951 0.0088)
OKLCHoklch(29.98% 0.095 5.3)
XYZxyz(4.0625, 2.3735, 2.1633)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#521227 #12523D
analogous
#521247 #521227 #521D12
triadic
#521227 #275212 #122752
tetradic
#521227 #475212 #12523D #1D1252
square
#521227 #475212 #12523D #1D1252
split-complementary
#521227 #12521D #124752
monochromatic
#19060C #20070F #521227 #841D3F #B62857

Accessibility & contrast

On white

14.24
#521227 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #521227
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##521227#FFFFFF#000000##FFFFFF
##5212271.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #521227;
/* rgb */ color: rgb(82, 18, 39);
/* oklch */ color: oklch(30.0% 0.095 5.3);
Tailwind
colors: {
  custom: {
    50: '#875660',
    500: '#521227',
    950: '#000000',
  },
}
SCSS
$custom: #521227;
$custom-light: #875660;
$custom-dark: #000000;
JSON
{
  "hex": "#521227",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 39
  },
  "hsl": {
    "h": 340.313,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29975,
    "c": 0.09548,
    "h": 5.3
  },
  "luminance": 0.02373
}

Semantic roles & 50–950 ramp

primary
#521227
secondary
#358B6F
accent
#E7B041
background
#F8F5F5
surface
#F0E9E9
border
#CBC5C5
text
#0C0305
muted
#7D7879

Preview Lab

Preview with #521227

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

Preview Lab → · Contrast checker → · Palette generator →

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