#522661#522661

#522661 is a dark, moderate purple. Relative luminance 0.040; OKLCH L 35.6% C 0.108 H 316.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#522661
RGBrgb(82, 38, 97)
HSLhsl(285, 44%, 26%)
HSVhsv(285, 61%, 38%)
CMYKcmyk(15.5%, 60.8%, 0%, 62%)
CIE-LABlab(23.81, 31.06, -26.58)
CIE-LCHlch(23.81, 40.88, 319.44°)
OKLaboklab(35.64% 0.0789 -0.0742)
OKLCHoklch(35.64% 0.108 316.7)
XYZxyz(6.3301, 4.0434, 11.7539)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522661 #356126
analogous
#352661 #522661 #612653
triadic
#522661 #615226 #266152
tetradic
#522661 #613526 #356126 #265361
square
#522661 #613526 #356126 #265361
split-complementary
#522661 #536126 #266135
monochromatic
#130916 #2D1535 #522661 #77378D #9C4AB8

Accessibility & contrast

On white

11.61
#522661 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#522661 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522661
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522661#FFFFFF#000000##FFFFFF
##5226611.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173663
Deuteranopia (green-blind)
#273A5F
Tritanopia (blue-blind)
#51303F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #522661;
/* rgb */ color: rgb(82, 38, 97);
/* oklch */ color: oklch(35.6% 0.108 316.7);
Tailwind
colors: {
  custom: {
    50: '#84638e',
    500: '#522661',
    950: '#000000',
  },
}
SCSS
$custom: #522661;
$custom-light: #84638e;
$custom-dark: #000000;
JSON
{
  "hex": "#522661",
  "rgb": {
    "r": 82,
    "g": 38,
    "b": 97
  },
  "hsl": {
    "h": 284.746,
    "s": 43.704,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35639,
    "c": 0.1083,
    "h": 316.7
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#522661
secondary
#60944F
accent
#D35475
background
#F8F6F8
surface
#EFEBF0
border
#CAC6CB
text
#0B050C
muted
#7C7A7D

Preview Lab

Preview with #522661

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

Preview Lab → · Contrast checker → · Palette generator →

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