#52208C#52208C

#52208C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.166 H 299.3°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#52208C
RGBrgb(82, 32, 140)
HSLhsl(268, 63%, 34%)
HSVhsv(268, 77%, 55%)
CMYKcmyk(41.4%, 77.1%, 0%, 45.1%)
CIE-LABlab(25.92, 44.88, -50.61)
CIE-LCHlch(25.92, 67.64, 311.57°)
OKLaboklab(38.17% 0.0813 -0.1446)
OKLCHoklch(38.17% 0.166 299.3)
XYZxyz(8.7286, 4.7202, 25.2571)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52208C #5A8C20
analogous
#20248C #52208C #88208C
triadic
#52208C #8C5220 #208C52
tetradic
#52208C #8C2024 #5A8C20 #208C88
square
#52208C #8C2024 #5A8C20 #208C88
split-complementary
#52208C #8C8820 #248C20
monochromatic
#180928 #35155A #52208C #6F2BBE #8E50D7

Accessibility & contrast

On white

10.80
#52208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#52208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52208C
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52208C#FFFFFF#000000##FFFFFF
##52208C1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#443C55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52208c;
/* rgb */ color: rgb(82, 32, 140);
/* oklch */ color: oklch(38.2% 0.166 299.3);
Tailwind
colors: {
  custom: {
    50: '#8861ae',
    500: '#52208c',
    950: '#000000',
  },
}
SCSS
$custom: #52208c;
$custom-light: #8861ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52208c",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 267.778,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38165,
    "c": 0.16591,
    "h": 299.3
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#52208C
secondary
#88BA4E
accent
#E6429A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52208C

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

Preview Lab → · Contrast checker → · Palette generator →

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