#522238#522238

#522238 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 32.8% C 0.077 H 353.4°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#522238
RGBrgb(82, 34, 56)
HSLhsl(333, 41%, 23%)
HSVhsv(333, 59%, 32%)
CMYKcmyk(0%, 58.5%, 31.7%, 67.8%)
CIE-LABlab(20.92, 25.24, -3.45)
CIE-LCHlch(20.92, 25.47, 352.22°)
OKLaboklab(32.83% 0.0765 -0.0088)
OKLCHoklch(32.83% 0.077 353.4)
XYZxyz(4.7657, 3.2239, 4.1119)
Luminance0.0322 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522238 #22523C
analogous
#522250 #522238 #522422
triadic
#522238 #385222 #223852
tetradic
#522238 #505222 #22523C #242252
square
#522238 #505222 #22523C #242252
split-complementary
#522238 #225224 #225052
monochromatic
#16090F #27101A #522238 #7D3456 #A94673

Accessibility & contrast

On white

12.77
#522238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#522238 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522238
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522238#FFFFFF#000000##FFFFFF
##5222381.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282D39
Deuteranopia (green-blind)
#353637
Tritanopia (blue-blind)
#58202A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #522238;
/* rgb */ color: rgb(82, 34, 56);
/* oklch */ color: oklch(32.8% 0.077 353.4);
Tailwind
colors: {
  custom: {
    50: '#855f6e',
    500: '#522238',
    950: '#000000',
  },
}
SCSS
$custom: #522238;
$custom-light: #855f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#522238",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 332.5,
    "s": 41.379,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32831,
    "c": 0.07698,
    "h": 353.4
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#522238
secondary
#4A866A
accent
#D19957
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0507
muted
#7C797A

Preview Lab

Preview with #522238

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

Preview Lab → · Contrast checker → · Palette generator →

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