#522268#522268

#522268 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.5% C 0.123 H 313.5°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#522268
RGBrgb(82, 34, 104)
HSLhsl(281, 51%, 27%)
HSVhsv(281, 67%, 41%)
CMYKcmyk(21.2%, 67.3%, 0%, 59.2%)
CIE-LABlab(23.46, 34.89, -31.71)
CIE-LCHlch(23.46, 47.15, 317.73°)
OKLaboklab(35.53% 0.0846 -0.0891)
OKLCHoklch(35.53% 0.123 313.5)
XYZxyz(6.5500, 3.9376, 13.5090)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#522268 #386822
analogous
#2F2268 #522268 #68225B
triadic
#522268 #685222 #226852
tetradic
#522268 #682F22 #386822 #225B68
square
#522268 #682F22 #386822 #225B68
split-complementary
#522268 #5B6822 #22682F
monochromatic
#120817 #2E133A #522268 #763196 #9A43C2

Accessibility & contrast

On white

11.75
#522268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#522268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #522268
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##522268#FFFFFF#000000##FFFFFF
##5222681.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04356A
Deuteranopia (green-blind)
#1E3966
Tritanopia (blue-blind)
#502F41
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #522268;
/* rgb */ color: rgb(82, 34, 104);
/* oklch */ color: oklch(35.5% 0.123 313.5);
Tailwind
colors: {
  custom: {
    50: '#856193',
    500: '#522268',
    950: '#000000',
  },
}
SCSS
$custom: #522268;
$custom-light: #856193;
$custom-dark: #000000;
JSON
{
  "hex": "#522268",
  "rgb": {
    "r": 82,
    "g": 34,
    "b": 104
  },
  "hsl": {
    "h": 281.143,
    "s": 50.725,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35529,
    "c": 0.1229,
    "h": 313.5
  },
  "luminance": 0.03937
}

Semantic roles & 50–950 ramp

primary
#522268
secondary
#649C4A
accent
#DA4E7A
background
#F8F5F9
surface
#EFEAF1
border
#CAC6CB
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #522268

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

Preview Lab → · Contrast checker → · Palette generator →

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