#52216D#52216D

#52216D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.130 H 311.2°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#52216D
RGBrgb(82, 33, 109)
HSLhsl(279, 54%, 28%)
HSVhsv(279, 70%, 43%)
CMYKcmyk(24.8%, 69.7%, 0%, 57.3%)
CIE-LABlab(23.62, 36.60, -34.69)
CIE-LCHlch(23.62, 50.43, 316.53°)
OKLaboklab(35.76% 0.0856 -0.0979)
OKLCHoklch(35.76% 0.13 311.2)
XYZxyz(6.7833, 3.9858, 14.8770)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52216D #3C6D21
analogous
#2C216D #52216D #6D2162
triadic
#52216D #6D5221 #216D52
tetradic
#52216D #6D2C21 #3C6D21 #21626D
square
#52216D #6D2C21 #3C6D21 #21626D
split-complementary
#52216D #626D21 #216D2C
monochromatic
#120717 #2F133E #52216D #752F9C #9742C6

Accessibility & contrast

On white

11.68
#52216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#52216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52216D
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52216D#FFFFFF#000000##FFFFFF
##52216D1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00366F
Deuteranopia (green-blind)
#18396B
Tritanopia (blue-blind)
#4F3044
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52216d;
/* rgb */ color: rgb(82, 33, 109);
/* oklch */ color: oklch(35.8% 0.130 311.2);
Tailwind
colors: {
  custom: {
    50: '#856097',
    500: '#52216d',
    950: '#000000',
  },
}
SCSS
$custom: #52216d;
$custom-light: #856097;
$custom-dark: #000000;
JSON
{
  "hex": "#52216d",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 278.684,
    "s": 53.521,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35757,
    "c": 0.13004,
    "h": 311.2
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#52216D
secondary
#68A149
accent
#DD4B7F
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52216D

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

Preview Lab → · Contrast checker → · Palette generator →

#52216D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva