#52208A#52208A

#52208A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.164 H 300.0°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#52208A
RGBrgb(82, 32, 138)
HSLhsl(268, 62%, 33%)
HSVhsv(268, 77%, 54%)
CMYKcmyk(40.6%, 76.8%, 0%, 45.9%)
CIE-LABlab(25.75, 44.37, -49.65)
CIE-LCHlch(25.75, 66.58, 311.79°)
OKLaboklab(37.99% 0.0818 -0.1418)
OKLCHoklch(37.99% 0.164 300)
XYZxyz(8.5825, 4.6618, 24.4875)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52208A #588A20
analogous
#20238A #52208A #87208A
triadic
#52208A #8A5220 #208A52
tetradic
#52208A #8A2023 #588A20 #208A87
square
#52208A #8A2023 #588A20 #208A87
split-complementary
#52208A #8A8720 #238A20
monochromatic
#170927 #341458 #52208A #702CBC #8E4ED6

Accessibility & contrast

On white

10.87
#52208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#52208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52208A
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52208A#FFFFFF#000000##FFFFFF
##52208A1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#453B54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52208a;
/* rgb */ color: rgb(82, 32, 138);
/* oklch */ color: oklch(38.0% 0.164 300.0);
Tailwind
colors: {
  custom: {
    50: '#8861ad',
    500: '#52208a',
    950: '#000000',
  },
}
SCSS
$custom: #52208a;
$custom-light: #8861ad;
$custom-dark: #000000;
JSON
{
  "hex": "#52208a",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 268.302,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37988,
    "c": 0.16369,
    "h": 300
  },
  "luminance": 0.04662
}

Semantic roles & 50–950 ramp

primary
#52208A
secondary
#86B94D
accent
#E54299
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52208A

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

Preview Lab → · Contrast checker → · Palette generator →

#52208A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva