#52208B#52208B

#52208B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.165 H 299.6°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#52208B
RGBrgb(82, 32, 139)
HSLhsl(268, 63%, 34%)
HSVhsv(268, 77%, 55%)
CMYKcmyk(41%, 77%, 0%, 45.5%)
CIE-LABlab(25.84, 44.62, -50.13)
CIE-LCHlch(25.84, 67.11, 311.68°)
OKLaboklab(38.08% 0.0815 -0.1432)
OKLCHoklch(38.08% 0.165 299.6)
XYZxyz(8.6552, 4.6908, 24.8705)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52208B #598B20
analogous
#20248B #52208B #87208B
triadic
#52208B #8B5220 #208B52
tetradic
#52208B #8B2024 #598B20 #208B87
square
#52208B #8B2024 #598B20 #208B87
split-complementary
#52208B #8B8720 #248B20
monochromatic
#170928 #351559 #52208B #6F2BBD #8E4FD6

Accessibility & contrast

On white

10.83
#52208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52208B
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52208B#FFFFFF#000000##FFFFFF
##52208B1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003C89
Tritanopia (blue-blind)
#453C54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52208b;
/* rgb */ color: rgb(82, 32, 139);
/* oklch */ color: oklch(38.1% 0.165 299.6);
Tailwind
colors: {
  custom: {
    50: '#8861ae',
    500: '#52208b',
    950: '#000000',
  },
}
SCSS
$custom: #52208b;
$custom-light: #8861ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52208b",
  "rgb": {
    "r": 82,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 268.037,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38076,
    "c": 0.1648,
    "h": 299.6
  },
  "luminance": 0.04691
}

Semantic roles & 50–950 ramp

primary
#52208B
secondary
#87BA4D
accent
#E64299
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52208B

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

Preview Lab → · Contrast checker → · Palette generator →

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