#52217A#52217A

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

Color values

HEX#52217A
RGBrgb(82, 33, 122)
HSLhsl(273, 57%, 30%)
HSVhsv(273, 73%, 48%)
CMYKcmyk(32.8%, 73%, 0%, 52.2%)
CIE-LABlab(24.60, 39.81, -41.45)
CIE-LCHlch(24.60, 57.47, 313.84°)
OKLaboklab(36.76% 0.084 -0.1177)
OKLCHoklch(36.76% 0.145 305.5)
XYZxyz(7.5356, 4.2867, 18.8390)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52217A #497A21
analogous
#26217A #52217A #7A2175
triadic
#52217A #7A5221 #217A52
tetradic
#52217A #7A2621 #497A21 #21757A
square
#52217A #7A2621 #497A21 #21757A
split-complementary
#52217A #757A21 #217A26
monochromatic
#11071A #32144A #52217A #722EAA #9148CD

Accessibility & contrast

On white

11.31
#52217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52217A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52217A#FFFFFF#000000##FFFFFF
##52217A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003B78
Tritanopia (blue-blind)
#4B364B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52217a;
/* rgb */ color: rgb(82, 33, 122);
/* oklch */ color: oklch(36.8% 0.145 305.5);
Tailwind
colors: {
  custom: {
    50: '#8761a1',
    500: '#52217a',
    950: '#000000',
  },
}
SCSS
$custom: #52217a;
$custom-light: #8761a1;
$custom-dark: #000000;
JSON
{
  "hex": "#52217a",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 273.034,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36761,
    "c": 0.14466,
    "h": 305.5
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#52217A
secondary
#76AD4A
accent
#E1478C
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52217A

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

Preview Lab → · Contrast checker → · Palette generator →

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