#52219F#52219F

#52219F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 40.0% C 0.186 H 293.8°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#52219F
RGBrgb(82, 33, 159)
HSLhsl(263, 66%, 38%)
HSVhsv(263, 79%, 62%)
CMYKcmyk(48.4%, 79.2%, 0%, 37.6%)
CIE-LABlab(27.80, 49.42, -59.22)
CIE-LCHlch(27.80, 77.13, 309.85°)
OKLaboklab(40.01% 0.075 -0.1699)
OKLCHoklch(40.01% 0.186 293.8)
XYZxyz(10.2798, 5.3844, 33.2918)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52219F #6E9F21
analogous
#212F9F #52219F #91219F
triadic
#52219F #9F5221 #219F52
tetradic
#52219F #9F212F #6E9F21 #219F91
square
#52219F #9F212F #6E9F21 #219F91
split-complementary
#52219F #9F9121 #2F9F21
monochromatic
#1E0C3A #38166C #52219F #6C2CD2 #8F5DDD

Accessibility & contrast

On white

10.11
#52219F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#52219F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52219F
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52219F#FFFFFF#000000##FFFFFF
##52219F1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A2
Deuteranopia (green-blind)
#003F9D
Tritanopia (blue-blind)
#3A4560
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #52219f;
/* rgb */ color: rgb(82, 33, 159);
/* oklch */ color: oklch(40.0% 0.186 293.8);
Tailwind
colors: {
  custom: {
    50: '#8b63bc',
    500: '#52219f',
    950: '#000000',
  },
}
SCSS
$custom: #52219f;
$custom-light: #8b63bc;
$custom-dark: #000000;
JSON
{
  "hex": "#52219f",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 159
  },
  "hsl": {
    "h": 263.333,
    "s": 65.625,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4001,
    "c": 0.18573,
    "h": 293.8
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#52219F
secondary
#99C25A
accent
#E93FA7
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0512
muted
#7E7A81

Preview Lab

Preview with #52219F

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

Preview Lab → · Contrast checker → · Palette generator →

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