#522148#522148

#522148 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.4% C 0.091 H 335.9°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#522148
RGBrgb(82, 33, 72)
HSLhsl(312, 43%, 23%)
HSVhsv(312, 60%, 32%)
CMYKcmyk(0%, 59.8%, 12.2%, 67.8%)
CIE-LABlab(21.39, 28.55, -13.70)
CIE-LCHlch(21.39, 31.67, 334.36°)
OKLaboklab(33.41% 0.0831 -0.0371)
OKLCHoklch(33.41% 0.091 335.9)
XYZxyz(5.1933, 3.3498, 6.5027)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522148 #21522B
analogous
#442152 #522148 #52212F
triadic
#522148 #485221 #214852
tetradic
#522148 #524421 #21522B #212F52
square
#522148 #524421 #21522B #212F52
split-complementary
#522148 #2F5221 #215244
monochromatic
#160913 #260F22 #522148 #7E336E #A94495

Accessibility & contrast

On white

12.58
#522148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#522148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522148
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522148#FFFFFF#000000##FFFFFF
##5221481.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212F49
Deuteranopia (green-blind)
#303647
Tritanopia (blue-blind)
#562331
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #522148;
/* rgb */ color: rgb(82, 33, 72);
/* oklch */ color: oklch(33.4% 0.091 335.9);
Tailwind
colors: {
  custom: {
    50: '#845f7b',
    500: '#522148',
    950: '#000000',
  },
}
SCSS
$custom: #522148;
$custom-light: #845f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#522148",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 72
  },
  "hsl": {
    "h": 312.245,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3341,
    "c": 0.09096,
    "h": 335.9
  },
  "luminance": 0.03349
}

Semantic roles & 50–950 ramp

primary
#522148
secondary
#498655
accent
#D26F55
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0509
muted
#7C797B

Preview Lab

Preview with #522148

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

Preview Lab → · Contrast checker → · Palette generator →

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