#52217B#52217B

#52217B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.146 H 305.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#52217B
RGBrgb(82, 33, 123)
HSLhsl(273, 58%, 31%)
HSVhsv(273, 73%, 48%)
CMYKcmyk(33.3%, 73.2%, 0%, 51.8%)
CIE-LABlab(24.68, 40.06, -41.96)
CIE-LCHlch(24.68, 58.01, 313.67°)
OKLaboklab(36.84% 0.0839 -0.1192)
OKLCHoklch(36.84% 0.146 305.1)
XYZxyz(7.5979, 4.3117, 19.1670)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52217B #4A7B21
analogous
#25217B #52217B #7B2177
triadic
#52217B #7B5221 #217B52
tetradic
#52217B #7B2521 #4A7B21 #21777B
square
#52217B #7B2521 #4A7B21 #21777B
split-complementary
#52217B #777B21 #217B25
monochromatic
#12071A #32144B #52217B #722EAB #9148CE

Accessibility & contrast

On white

11.28
#52217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52217B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52217B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52217B#FFFFFF#000000##FFFFFF
##52217B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#4A364B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52217b;
/* rgb */ color: rgb(82, 33, 123);
/* oklch */ color: oklch(36.8% 0.146 305.1);
Tailwind
colors: {
  custom: {
    50: '#8761a2',
    500: '#52217b',
    950: '#000000',
  },
}
SCSS
$custom: #52217b;
$custom-light: #8761a2;
$custom-dark: #000000;
JSON
{
  "hex": "#52217b",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 272.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36842,
    "c": 0.14577,
    "h": 305.1
  },
  "luminance": 0.04312
}

Semantic roles & 50–950 ramp

primary
#52217B
secondary
#77AE4A
accent
#E1478D
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52217B

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

Preview Lab → · Contrast checker → · Palette generator →

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