#522652#522652

#522652 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.7% C 0.091 H 327.3°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#522652
RGBrgb(82, 38, 82)
HSLhsl(300, 37%, 24%)
HSVhsv(300, 54%, 32%)
CMYKcmyk(0%, 53.7%, 0%, 67.8%)
CIE-LABlab(22.96, 27.72, -18.00)
CIE-LCHlch(22.96, 33.05, 326.99°)
OKLaboklab(34.74% 0.077 -0.0494)
OKLCHoklch(34.74% 0.091 327.3)
XYZxyz(5.6957, 3.7896, 8.4125)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522652 #265226
analogous
#3C2652 #522652 #52263C
triadic
#522652 #525226 #265252
tetradic
#522652 #523C26 #265226 #263C52
square
#522652 #523C26 #265226 #263C52
split-complementary
#522652 #3C5226 #26523C
monochromatic
#150A15 #281328 #522652 #7C397C #A64DA6

Accessibility & contrast

On white

11.95
#522652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#522652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522652
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522652#FFFFFF#000000##FFFFFF
##5226521.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223353
Deuteranopia (green-blind)
#2F3951
Tritanopia (blue-blind)
#542B38
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #522652;
/* rgb */ color: rgb(82, 38, 82);
/* oklch */ color: oklch(34.7% 0.091 327.3);
Tailwind
colors: {
  custom: {
    50: '#846282',
    500: '#522652',
    950: '#000000',
  },
}
SCSS
$custom: #522652;
$custom-light: #846282;
$custom-dark: #000000;
JSON
{
  "hex": "#522652",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 82
  },
  "hsl": {
    "h": 300,
    "s": 36.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34735,
    "c": 0.09149,
    "h": 327.3
  },
  "luminance": 0.03789
}

Semantic roles & 50–950 ramp

primary
#522652
secondary
#4F854F
accent
#CD5B5B
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #522652

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

Preview Lab → · Contrast checker → · Palette generator →

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