#52217C#52217C

#52217C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.147 H 304.7°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#52217C
RGBrgb(82, 33, 124)
HSLhsl(272, 58%, 31%)
HSVhsv(272, 73%, 49%)
CMYKcmyk(33.9%, 73.4%, 0%, 51.4%)
CIE-LABlab(24.75, 40.31, -42.46)
CIE-LCHlch(24.75, 58.55, 313.51°)
OKLaboklab(36.92% 0.0837 -0.1207)
OKLCHoklch(36.92% 0.147 304.7)
XYZxyz(7.6608, 4.3368, 19.4984)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52217C #4B7C21
analogous
#24217C #52217C #7C2178
triadic
#52217C #7C5221 #217C52
tetradic
#52217C #7C2421 #4B7C21 #21787C
square
#52217C #7C2421 #4B7C21 #21787C
split-complementary
#52217C #787C21 #217C24
monochromatic
#12071B #32144C #52217C #722EAC #9149CF

Accessibility & contrast

On white

11.25
#52217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52217C
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52217C#FFFFFF#000000##FFFFFF
##52217C1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#4A364C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52217c;
/* rgb */ color: rgb(82, 33, 124);
/* oklch */ color: oklch(36.9% 0.147 304.7);
Tailwind
colors: {
  custom: {
    50: '#8761a3',
    500: '#52217c',
    950: '#000000',
  },
}
SCSS
$custom: #52217c;
$custom-light: #8761a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52217c",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 272.308,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36923,
    "c": 0.1469,
    "h": 304.7
  },
  "luminance": 0.04337
}

Semantic roles & 50–950 ramp

primary
#52217C
secondary
#79AF4A
accent
#E1478E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52217C

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

Preview Lab → · Contrast checker → · Palette generator →

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