#522140#522140

#522140 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.0% C 0.084 H 343.9°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#522140
RGBrgb(82, 33, 64)
HSLhsl(322, 43%, 23%)
HSVhsv(322, 60%, 32%)
CMYKcmyk(0%, 59.8%, 22%, 67.8%)
CIE-LABlab(21.03, 27.11, -8.80)
CIE-LCHlch(21.03, 28.50, 342.02°)
OKLaboklab(33.02% 0.0809 -0.0234)
OKLCHoklch(33.02% 0.084 343.9)
XYZxyz(4.9491, 3.2521, 5.2166)
Luminance0.0325 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522140 #215233
analogous
#4C2152 #522140 #522127
triadic
#522140 #405221 #214052
tetradic
#522140 #524C21 #215233 #212752
square
#522140 #524C21 #215233 #212752
split-complementary
#522140 #275221 #21524C
monochromatic
#160911 #260F1E #522140 #7E3362 #A94484

Accessibility & contrast

On white

12.72
#522140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#522140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522140
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522140#FFFFFF#000000##FFFFFF
##5221401.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#252D41
Deuteranopia (green-blind)
#32363F
Tritanopia (blue-blind)
#57212D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #522140;
/* rgb */ color: rgb(82, 33, 64);
/* oklch */ color: oklch(33.0% 0.084 343.9);
Tailwind
colors: {
  custom: {
    50: '#845f74',
    500: '#522140',
    950: '#000000',
  },
}
SCSS
$custom: #522140;
$custom-light: #845f74;
$custom-dark: #000000;
JSON
{
  "hex": "#522140",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 322.041,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33018,
    "c": 0.08422,
    "h": 343.9
  },
  "luminance": 0.03252
}

Semantic roles & 50–950 ramp

primary
#522140
secondary
#49865F
accent
#D28355
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0508
muted
#7C797B

Preview Lab

Preview with #522140

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

Preview Lab → · Contrast checker → · Palette generator →

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