#52219B#52219B

#52219B is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.181 H 294.9°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).

Color values

HEX#52219B
RGBrgb(82, 33, 155)
HSLhsl(264, 65%, 37%)
HSVhsv(264, 79%, 61%)
CMYKcmyk(47.1%, 78.7%, 0%, 39.2%)
CIE-LABlab(27.43, 48.36, -57.39)
CIE-LCHlch(27.43, 75.05, 310.12°)
OKLaboklab(39.64% 0.0762 -0.1645)
OKLCHoklch(39.64% 0.181 294.9)
XYZxyz(9.9383, 5.2478, 31.4933)
Luminance0.0525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52219B #6A9B21
analogous
#212D9B #52219B #8F219B
triadic
#52219B #9B5221 #219B52
tetradic
#52219B #9B212D #6A9B21 #219B8F
square
#52219B #9B212D #6A9B21 #219B8F
split-complementary
#52219B #9B8F21 #2D9B21
monochromatic
#1D0C36 #371669 #52219B #6D2CCD #8E5ADC

Accessibility & contrast

On white

10.25
#52219B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#52219B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52219B
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52219B#FFFFFF#000000##FFFFFF
##52219B1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#3D435D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52219b;
/* rgb */ color: rgb(82, 33, 155);
/* oklch */ color: oklch(39.6% 0.181 294.9);
Tailwind
colors: {
  custom: {
    50: '#8a62ba',
    500: '#52219b',
    950: '#000000',
  },
}
SCSS
$custom: #52219b;
$custom-light: #8a62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#52219b",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 155
  },
  "hsl": {
    "h": 264.098,
    "s": 64.894,
    "l": 36.863
  },
  "oklch": {
    "l": 0.39636,
    "c": 0.18135,
    "h": 294.9
  },
  "luminance": 0.05248
}

Semantic roles & 50–950 ramp

primary
#52219B
secondary
#96C058
accent
#E840A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #52219B

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

Preview Lab → · Contrast checker → · Palette generator →

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