#522138#522138

#522138 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 32.7% C 0.079 H 353.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#522138
RGBrgb(82, 33, 56)
HSLhsl(332, 43%, 23%)
HSVhsv(332, 60%, 32%)
CMYKcmyk(0%, 59.8%, 31.7%, 67.8%)
CIE-LABlab(20.70, 25.81, -3.77)
CIE-LCHlch(20.70, 26.08, 351.69°)
OKLaboklab(32.67% 0.0782 -0.0096)
OKLCHoklch(32.67% 0.079 353)
XYZxyz(4.7375, 3.1675, 4.1025)
Luminance0.0317 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522138 #21523B
analogous
#522150 #522138 #522321
triadic
#522138 #385221 #213852
tetradic
#522138 #505221 #21523B #232152
square
#522138 #505221 #21523B #232152
split-complementary
#522138 #215223 #215052
monochromatic
#16090F #260F1A #522138 #7E3356 #A94474

Accessibility & contrast

On white

12.86
#522138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#522138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522138
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522138#FFFFFF#000000##FFFFFF
##5221381.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282C39
Deuteranopia (green-blind)
#353537
Tritanopia (blue-blind)
#581F2A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #522138;
/* rgb */ color: rgb(82, 33, 56);
/* oklch */ color: oklch(32.7% 0.079 353.0);
Tailwind
colors: {
  custom: {
    50: '#855f6e',
    500: '#522138',
    950: '#000000',
  },
}
SCSS
$custom: #522138;
$custom-light: #855f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#522138",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 56
  },
  "hsl": {
    "h": 331.837,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3267,
    "c": 0.07881,
    "h": 353
  },
  "luminance": 0.03167
}

Semantic roles & 50–950 ramp

primary
#522138
secondary
#498669
accent
#D29855
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0407
muted
#7C797A

Preview Lab

Preview with #522138

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

Preview Lab → · Contrast checker → · Palette generator →

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