#52216B#52216B

#52216B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.128 H 312.1°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#52216B
RGBrgb(82, 33, 107)
HSLhsl(280, 53%, 27%)
HSVhsv(280, 69%, 42%)
CMYKcmyk(23.4%, 69.2%, 0%, 58%)
CIE-LABlab(23.48, 36.12, -33.63)
CIE-LCHlch(23.48, 49.35, 317.05°)
OKLaboklab(35.61% 0.0858 -0.0948)
OKLCHoklch(35.61% 0.128 312.1)
XYZxyz(6.6769, 3.9433, 14.3165)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52216B #3A6B21
analogous
#2D216B #52216B #6B215F
triadic
#52216B #6B5221 #216B52
tetradic
#52216B #6B2D21 #3A6B21 #215F6B
square
#52216B #6B2D21 #3A6B21 #215F6B
split-complementary
#52216B #5F6B21 #216B2D
monochromatic
#120717 #2E133C #52216B #762F9A #9842C5

Accessibility & contrast

On white

11.74
#52216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#52216B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52216B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52216B#FFFFFF#000000##FFFFFF
##52216B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#1A3969
Tritanopia (blue-blind)
#4F3043
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52216b;
/* rgb */ color: rgb(82, 33, 107);
/* oklch */ color: oklch(35.6% 0.128 312.1);
Tailwind
colors: {
  custom: {
    50: '#856096',
    500: '#52216b',
    950: '#000000',
  },
}
SCSS
$custom: #52216b;
$custom-light: #856096;
$custom-dark: #000000;
JSON
{
  "hex": "#52216b",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 279.73,
    "s": 52.857,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3561,
    "c": 0.1278,
    "h": 312.1
  },
  "luminance": 0.03943
}

Semantic roles & 50–950 ramp

primary
#52216B
secondary
#669F49
accent
#DC4C7C
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #52216B

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

Preview Lab → · Contrast checker → · Palette generator →

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