#52218C#52218C

#52218C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.165 H 299.2°. Best body text is #FFFFFF at 10.74:1 contrast (WCAG AA passes).

Color values

HEX#52218C
RGBrgb(82, 33, 140)
HSLhsl(267, 62%, 34%)
HSVhsv(267, 76%, 55%)
CMYKcmyk(41.4%, 76.4%, 0%, 45.1%)
CIE-LABlab(26.08, 44.42, -50.34)
CIE-LCHlch(26.08, 67.14, 311.43°)
OKLaboklab(38.28% 0.0803 -0.1439)
OKLCHoklch(38.28% 0.165 299.2)
XYZxyz(8.7560, 4.7749, 25.2662)
Luminance0.0478 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52218C #5B8C21
analogous
#21258C #52218C #88218C
triadic
#52218C #8C5221 #218C52
tetradic
#52218C #8C2125 #5B8C21 #218C88
square
#52218C #8C2125 #5B8C21 #218C88
split-complementary
#52218C #8C8821 #258C21
monochromatic
#180A29 #35155A #52218C #6F2DBE #8E51D6

Accessibility & contrast

On white

10.74
#52218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52218C
10.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52218C#FFFFFF#000000##FFFFFF
##52218C1.0010.741.9610.74
#FFFFFF10.741.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52218c;
/* rgb */ color: rgb(82, 33, 140);
/* oklch */ color: oklch(38.3% 0.165 299.2);
Tailwind
colors: {
  custom: {
    50: '#8862ae',
    500: '#52218c',
    950: '#000000',
  },
}
SCSS
$custom: #52218c;
$custom-light: #8862ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52218c",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 267.477,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38278,
    "c": 0.16478,
    "h": 299.2
  },
  "luminance": 0.04775
}

Semantic roles & 50–950 ramp

primary
#52218C
secondary
#89B94F
accent
#E5439B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52218C

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

Preview Lab → · Contrast checker → · Palette generator →

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