#522666#522666

#522666 is a dark, moderate purple. Relative luminance 0.041; OKLCH L 36.0% C 0.114 H 313.9°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#522666
RGBrgb(82, 38, 102)
HSLhsl(281, 46%, 27%)
HSVhsv(281, 63%, 40%)
CMYKcmyk(19.6%, 62.7%, 0%, 60%)
CIE-LABlab(24.13, 32.24, -29.35)
CIE-LCHlch(24.13, 43.60, 317.69°)
OKLaboklab(35.97% 0.0791 -0.0823)
OKLCHoklch(35.97% 0.114 313.9)
XYZxyz(6.5707, 4.1396, 13.0207)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522666 #3A6626
analogous
#322666 #522666 #66265A
triadic
#522666 #665226 #266652
tetradic
#522666 #663226 #3A6626 #265A66
square
#522666 #663226 #3A6626 #265A66
split-complementary
#522666 #5A6626 #266632
monochromatic
#120816 #2E1539 #522666 #763793 #984BBC

Accessibility & contrast

On white

11.49
#522666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#522666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522666
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522666#FFFFFF#000000##FFFFFF
##5226661.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123768
Deuteranopia (green-blind)
#243A64
Tritanopia (blue-blind)
#503142
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522666;
/* rgb */ color: rgb(82, 38, 102);
/* oklch */ color: oklch(36.0% 0.114 313.9);
Tailwind
colors: {
  custom: {
    50: '#856392',
    500: '#522666',
    950: '#000000',
  },
}
SCSS
$custom: #522666;
$custom-light: #856392;
$custom-dark: #000000;
JSON
{
  "hex": "#522666",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 102
  },
  "hsl": {
    "h": 281.25,
    "s": 45.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.11413,
    "h": 313.9
  },
  "luminance": 0.04139
}

Semantic roles & 50–950 ramp

primary
#522666
secondary
#66994F
accent
#D5527B
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B050D
muted
#7C7A7E

Preview Lab

Preview with #522666

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

Preview Lab → · Contrast checker → · Palette generator →

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