#522142#522142

#522142 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.1% C 0.086 H 341.8°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#522142
RGBrgb(82, 33, 66)
HSLhsl(320, 43%, 23%)
HSVhsv(320, 60%, 32%)
CMYKcmyk(0%, 59.8%, 19.5%, 67.8%)
CIE-LABlab(21.11, 27.46, -10.04)
CIE-LCHlch(21.11, 29.24, 339.92°)
OKLaboklab(33.11% 0.0815 -0.0268)
OKLCHoklch(33.11% 0.086 341.8)
XYZxyz(5.0070, 3.2753, 5.5217)
Luminance0.0328 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522142 #215231
analogous
#4A2152 #522142 #522129
triadic
#522142 #425221 #214252
tetradic
#522142 #524A21 #215231 #212952
square
#522142 #524A21 #215231 #212952
split-complementary
#522142 #295221 #21524A
monochromatic
#160912 #260F1F #522142 #7E3365 #A94488

Accessibility & contrast

On white

12.69
#522142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#522142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522142
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522142#FFFFFF#000000##FFFFFF
##5221421.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242E43
Deuteranopia (green-blind)
#323641
Tritanopia (blue-blind)
#57212E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #522142;
/* rgb */ color: rgb(82, 33, 66);
/* oklch */ color: oklch(33.1% 0.086 341.8);
Tailwind
colors: {
  custom: {
    50: '#845f76',
    500: '#522142',
    950: '#000000',
  },
}
SCSS
$custom: #522142;
$custom-light: #845f76;
$custom-dark: #000000;
JSON
{
  "hex": "#522142",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 319.592,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33112,
    "c": 0.0858,
    "h": 341.8
  },
  "luminance": 0.03275
}

Semantic roles & 50–950 ramp

primary
#522142
secondary
#49865D
accent
#D27E55
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0508
muted
#7C797B

Preview Lab

Preview with #522142

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

Preview Lab → · Contrast checker → · Palette generator →

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