#522147#522147

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

Color values

HEX#522147
RGBrgb(82, 33, 71)
HSLhsl(313, 43%, 23%)
HSVhsv(313, 60%, 32%)
CMYKcmyk(0%, 59.8%, 13.4%, 67.8%)
CIE-LABlab(21.35, 28.36, -13.10)
CIE-LCHlch(21.35, 31.24, 335.21°)
OKLaboklab(33.36% 0.0828 -0.0354)
OKLCHoklch(33.36% 0.09 336.9)
XYZxyz(5.1609, 3.3369, 6.3323)
Luminance0.0334 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522147 #21522C
analogous
#442152 #522147 #52212F
triadic
#522147 #475221 #214752
tetradic
#522147 #524421 #21522C #212F52
square
#522147 #524421 #21522C #212F52
split-complementary
#522147 #2F5221 #215244
monochromatic
#160913 #260F21 #522147 #7E336D #A94493

Accessibility & contrast

On white

12.60
#522147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #522147
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522147#FFFFFF#000000##FFFFFF
##5221471.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222F48
Deuteranopia (green-blind)
#303646
Tritanopia (blue-blind)
#562330
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #522147;
/* rgb */ color: rgb(82, 33, 71);
/* oklch */ color: oklch(33.4% 0.090 336.9);
Tailwind
colors: {
  custom: {
    50: '#845f7a',
    500: '#522147',
    950: '#000000',
  },
}
SCSS
$custom: #522147;
$custom-light: #845f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#522147",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 313.469,
    "s": 42.609,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33359,
    "c": 0.09006,
    "h": 336.9
  },
  "luminance": 0.03336
}

Semantic roles & 50–950 ramp

primary
#522147
secondary
#498656
accent
#D27155
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0509
muted
#7C797B

Preview Lab

Preview with #522147

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

Preview Lab → · Contrast checker → · Palette generator →

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