#52217E#52217E

#52217E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.149 H 304.0°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#52217E
RGBrgb(82, 33, 126)
HSLhsl(272, 58%, 31%)
HSVhsv(272, 74%, 49%)
CMYKcmyk(34.9%, 73.8%, 0%, 50.6%)
CIE-LABlab(24.91, 40.82, -43.47)
CIE-LCHlch(24.91, 59.63, 313.20°)
OKLaboklab(37.09% 0.0833 -0.1237)
OKLCHoklch(37.09% 0.149 304)
XYZxyz(7.7886, 4.3879, 20.1713)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52217E #4D7E21
analogous
#23217E #52217E #7E217B
triadic
#52217E #7E5221 #217E52
tetradic
#52217E #7E2321 #4D7E21 #217B7E
square
#52217E #7E2321 #4D7E21 #217B7E
split-complementary
#52217E #7B7E21 #217E23
monochromatic
#13081D #32144E #52217E #722EAE #904AD0

Accessibility & contrast

On white

11.18
#52217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#52217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52217E
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52217E#FFFFFF#000000##FFFFFF
##52217E1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#49374D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52217e;
/* rgb */ color: rgb(82, 33, 126);
/* oklch */ color: oklch(37.1% 0.149 304.0);
Tailwind
colors: {
  custom: {
    50: '#8761a4',
    500: '#52217e',
    950: '#000000',
  },
}
SCSS
$custom: #52217e;
$custom-light: #8761a4;
$custom-dark: #000000;
JSON
{
  "hex": "#52217e",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 271.613,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37087,
    "c": 0.14914,
    "h": 304
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#52217E
secondary
#7BB14A
accent
#E24690
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52217E

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

Preview Lab → · Contrast checker → · Palette generator →

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