#52219A#52219A

#52219A is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.180 H 295.1°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#52219A
RGBrgb(82, 33, 154)
HSLhsl(264, 65%, 37%)
HSVhsv(264, 79%, 60%)
CMYKcmyk(46.8%, 78.6%, 0%, 39.6%)
CIE-LABlab(27.34, 48.10, -56.93)
CIE-LCHlch(27.34, 74.53, 310.19°)
OKLaboklab(39.54% 0.0765 -0.1632)
OKLCHoklch(39.54% 0.18 295.1)
XYZxyz(9.8547, 5.2144, 31.0528)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52219A #699A21
analogous
#212C9A #52219A #8F219A
triadic
#52219A #9A5221 #219A52
tetradic
#52219A #9A212C #699A21 #219A8F
square
#52219A #9A212C #699A21 #219A8F
split-complementary
#52219A #9A8F21 #2C9A21
monochromatic
#1C0B35 #371668 #52219A #6D2CCC #8E5ADC

Accessibility & contrast

On white

10.28
#52219A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#52219A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52219A
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52219A#FFFFFF#000000##FFFFFF
##52219A1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429D
Deuteranopia (green-blind)
#003F98
Tritanopia (blue-blind)
#3D425D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #52219a;
/* rgb */ color: rgb(82, 33, 154);
/* oklch */ color: oklch(39.5% 0.180 295.1);
Tailwind
colors: {
  custom: {
    50: '#8a62b9',
    500: '#52219a',
    950: '#000000',
  },
}
SCSS
$custom: #52219a;
$custom-light: #8a62b9;
$custom-dark: #000000;
JSON
{
  "hex": "#52219a",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 154
  },
  "hsl": {
    "h": 264.298,
    "s": 64.706,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39543,
    "c": 0.18026,
    "h": 295.1
  },
  "luminance": 0.05215
}

Semantic roles & 50–950 ramp

primary
#52219A
secondary
#95C057
accent
#E840A4
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #52219A

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

Preview Lab → · Contrast checker → · Palette generator →

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