#52216E#52216E

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

Color values

HEX#52216E
RGBrgb(82, 33, 110)
HSLhsl(278, 54%, 28%)
HSVhsv(278, 70%, 43%)
CMYKcmyk(25.5%, 70%, 0%, 56.9%)
CIE-LABlab(23.70, 36.84, -35.22)
CIE-LCHlch(23.70, 50.97, 316.29°)
OKLaboklab(35.83% 0.0855 -0.0994)
OKLCHoklch(35.83% 0.131 310.7)
XYZxyz(6.8375, 4.0075, 15.1622)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52216E #3D6E21
analogous
#2B216E #52216E #6E2163
triadic
#52216E #6E5221 #216E52
tetradic
#52216E #6E2B21 #3D6E21 #21636E
square
#52216E #6E2B21 #3D6E21 #21636E
split-complementary
#52216E #636E21 #216E2B
monochromatic
#120718 #2F133F #52216E #752F9D #9743C7

Accessibility & contrast

On white

11.66
#52216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52216E
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52216E#FFFFFF#000000##FFFFFF
##52216E1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#17396C
Tritanopia (blue-blind)
#4E3144
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52216e;
/* rgb */ color: rgb(82, 33, 110);
/* oklch */ color: oklch(35.8% 0.131 310.7);
Tailwind
colors: {
  custom: {
    50: '#866098',
    500: '#52216e',
    950: '#000000',
  },
}
SCSS
$custom: #52216e;
$custom-light: #866098;
$custom-dark: #000000;
JSON
{
  "hex": "#52216e",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 278.182,
    "s": 53.846,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35831,
    "c": 0.13117,
    "h": 310.7
  },
  "luminance": 0.04007
}

Semantic roles & 50–950 ramp

primary
#52216E
secondary
#69A249
accent
#DD4B80
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #52216E

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

Preview Lab → · Contrast checker → · Palette generator →

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