#52219C#52219C

#52219C is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.7% C 0.182 H 294.6°. Best body text is #FFFFFF at 10.21:1 contrast (WCAG AA passes).

Color values

HEX#52219C
RGBrgb(82, 33, 156)
HSLhsl(264, 65%, 37%)
HSVhsv(264, 79%, 61%)
CMYKcmyk(47.4%, 78.8%, 0%, 38.8%)
CIE-LABlab(27.52, 48.62, -57.85)
CIE-LCHlch(27.52, 75.57, 310.05°)
OKLaboklab(39.73% 0.0759 -0.1659)
OKLCHoklch(39.73% 0.182 294.6)
XYZxyz(10.0226, 5.2816, 31.9374)
Luminance0.0528 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52219C #6B9C21
analogous
#212E9C #52219C #8F219C
triadic
#52219C #9C5221 #219C52
tetradic
#52219C #9C212E #6B9C21 #219C8F
square
#52219C #9C212E #6B9C21 #219C8F
split-complementary
#52219C #9C8F21 #2E9C21
monochromatic
#1D0C37 #371669 #52219C #6D2CCF #8F5BDC

Accessibility & contrast

On white

10.21
#52219C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#52219C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52219C
10.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52219C#FFFFFF#000000##FFFFFF
##52219C1.0010.212.0610.21
#FFFFFF10.211.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#3C435E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52219c;
/* rgb */ color: rgb(82, 33, 156);
/* oklch */ color: oklch(39.7% 0.182 294.6);
Tailwind
colors: {
  custom: {
    50: '#8a62ba',
    500: '#52219c',
    950: '#000000',
  },
}
SCSS
$custom: #52219c;
$custom-light: #8a62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#52219c",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 156
  },
  "hsl": {
    "h": 263.902,
    "s": 65.079,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39729,
    "c": 0.18245,
    "h": 294.6
  },
  "luminance": 0.05282
}

Semantic roles & 50–950 ramp

primary
#52219C
secondary
#97C158
accent
#E840A5
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #52219C

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

Preview Lab → · Contrast checker → · Palette generator →

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