#52218D#52218D

#52218D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.4% C 0.166 H 298.9°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#52218D
RGBrgb(82, 33, 141)
HSLhsl(267, 62%, 34%)
HSVhsv(267, 77%, 55%)
CMYKcmyk(41.8%, 76.6%, 0%, 44.7%)
CIE-LABlab(26.17, 44.68, -50.82)
CIE-LCHlch(26.17, 67.67, 311.32°)
OKLaboklab(38.37% 0.0801 -0.1453)
OKLCHoklch(38.37% 0.166 298.9)
XYZxyz(8.8300, 4.8045, 25.6563)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52218D #5C8D21
analogous
#21268D #52218D #88218D
triadic
#52218D #8D5221 #218D52
tetradic
#52218D #8D2126 #5C8D21 #218D88
square
#52218D #8D2126 #5C8D21 #218D88
split-complementary
#52218D #8D8821 #268D21
monochromatic
#180A2A #35155B #52218D #6F2DBF #8E52D6

Accessibility & contrast

On white

10.71
#52218D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#52218D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52218D
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52218D#FFFFFF#000000##FFFFFF
##52218D1.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E90
Deuteranopia (green-blind)
#003D8B
Tritanopia (blue-blind)
#443D55
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52218d;
/* rgb */ color: rgb(82, 33, 141);
/* oklch */ color: oklch(38.4% 0.166 298.9);
Tailwind
colors: {
  custom: {
    50: '#8962af',
    500: '#52218d',
    950: '#000000',
  },
}
SCSS
$custom: #52218d;
$custom-light: #8962af;
$custom-dark: #000000;
JSON
{
  "hex": "#52218d",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 141
  },
  "hsl": {
    "h": 267.222,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.38366,
    "c": 0.16589,
    "h": 298.9
  },
  "luminance": 0.04805
}

Semantic roles & 50–950 ramp

primary
#52218D
secondary
#8ABA50
accent
#E5439B
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52218D

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

Preview Lab → · Contrast checker → · Palette generator →

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