#52217D#52217D

#52217D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.148 H 304.4°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#52217D
RGBrgb(82, 33, 125)
HSLhsl(272, 58%, 31%)
HSVhsv(272, 74%, 49%)
CMYKcmyk(34.4%, 73.6%, 0%, 51%)
CIE-LABlab(24.83, 40.57, -42.97)
CIE-LCHlch(24.83, 59.09, 313.35°)
OKLaboklab(37% 0.0835 -0.1222)
OKLCHoklch(37% 0.148 304.4)
XYZxyz(7.7244, 4.3622, 19.8331)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52217D #4C7D21
analogous
#24217D #52217D #7D217A
triadic
#52217D #7D5221 #217D52
tetradic
#52217D #7D2421 #4C7D21 #217A7D
square
#52217D #7D2421 #4C7D21 #217A7D
split-complementary
#52217D #7A7D21 #217D24
monochromatic
#12071C #32144D #52217D #722EAD #9149CF

Accessibility & contrast

On white

11.22
#52217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52217D
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52217D#FFFFFF#000000##FFFFFF
##52217D1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#4A374C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52217d;
/* rgb */ color: rgb(82, 33, 125);
/* oklch */ color: oklch(37.0% 0.148 304.4);
Tailwind
colors: {
  custom: {
    50: '#8761a3',
    500: '#52217d',
    950: '#000000',
  },
}
SCSS
$custom: #52217d;
$custom-light: #8761a3;
$custom-dark: #000000;
JSON
{
  "hex": "#52217d",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 271.957,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37005,
    "c": 0.14802,
    "h": 304.4
  },
  "luminance": 0.04362
}

Semantic roles & 50–950 ramp

primary
#52217D
secondary
#7AB04A
accent
#E1468F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #52217D

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

Preview Lab → · Contrast checker → · Palette generator →

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