#52216F#52216F

#52216F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.132 H 310.2°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#52216F
RGBrgb(82, 33, 111)
HSLhsl(278, 54%, 28%)
HSVhsv(278, 70%, 44%)
CMYKcmyk(26.1%, 70.3%, 0%, 56.5%)
CIE-LABlab(23.77, 37.09, -35.75)
CIE-LCHlch(23.77, 51.51, 316.05°)
OKLaboklab(35.91% 0.0854 -0.101)
OKLCHoklch(35.91% 0.132 310.2)
XYZxyz(6.8922, 4.0294, 15.4505)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52216F #3E6F21
analogous
#2B216F #52216F #6F2165
triadic
#52216F #6F5221 #216F52
tetradic
#52216F #6F2B21 #3E6F21 #21656F
square
#52216F #6F2B21 #3E6F21 #21656F
split-complementary
#52216F #656F21 #216F2B
monochromatic
#110718 #2F1340 #52216F #752F9E #9643C7

Accessibility & contrast

On white

11.63
#52216F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#52216F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52216F
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52216F#FFFFFF#000000##FFFFFF
##52216F1.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#16396D
Tritanopia (blue-blind)
#4E3145
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #52216f;
/* rgb */ color: rgb(82, 33, 111);
/* oklch */ color: oklch(35.9% 0.132 310.2);
Tailwind
colors: {
  custom: {
    50: '#866099',
    500: '#52216f',
    950: '#000000',
  },
}
SCSS
$custom: #52216f;
$custom-light: #866099;
$custom-dark: #000000;
JSON
{
  "hex": "#52216f",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 111
  },
  "hsl": {
    "h": 277.692,
    "s": 54.167,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35906,
    "c": 0.13229,
    "h": 310.2
  },
  "luminance": 0.04029
}

Semantic roles & 50–950 ramp

primary
#52216F
secondary
#6AA349
accent
#DE4A81
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #52216F

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

Preview Lab → · Contrast checker → · Palette generator →

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