#52218B#52218B

#52218B is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.164 H 299.5°. Best body text is #FFFFFF at 10.77:1 contrast (WCAG AA passes).

Color values

HEX#52218B
RGBrgb(82, 33, 139)
HSLhsl(268, 62%, 34%)
HSVhsv(268, 76%, 55%)
CMYKcmyk(41%, 76.3%, 0%, 45.5%)
CIE-LABlab(26.00, 44.16, -49.86)
CIE-LCHlch(26.00, 66.61, 311.53°)
OKLaboklab(38.19% 0.0806 -0.1425)
OKLCHoklch(38.19% 0.164 299.5)
XYZxyz(8.6826, 4.7455, 24.8796)
Luminance0.0475 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52218B #5A8B21
analogous
#21258B #52218B #87218B
triadic
#52218B #8B5221 #218B52
tetradic
#52218B #8B2125 #5A8B21 #218B87
square
#52218B #8B2125 #5A8B21 #218B87
split-complementary
#52218B #8B8721 #258B21
monochromatic
#180A28 #35155A #52218B #6F2DBC #8E51D6

Accessibility & contrast

On white

10.77
#52218B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#52218B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52218B
10.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52218B#FFFFFF#000000##FFFFFF
##52218B1.0010.771.9510.77
#FFFFFF10.771.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#443C54
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52218b;
/* rgb */ color: rgb(82, 33, 139);
/* oklch */ color: oklch(38.2% 0.164 299.5);
Tailwind
colors: {
  custom: {
    50: '#8862ae',
    500: '#52218b',
    950: '#000000',
  },
}
SCSS
$custom: #52218b;
$custom-light: #8862ae;
$custom-dark: #000000;
JSON
{
  "hex": "#52218b",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 139
  },
  "hsl": {
    "h": 267.736,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3819,
    "c": 0.16367,
    "h": 299.5
  },
  "luminance": 0.04746
}

Semantic roles & 50–950 ramp

primary
#52218B
secondary
#88B94F
accent
#E5439A
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0510
muted
#7D7A7F

Preview Lab

Preview with #52218B

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

Preview Lab → · Contrast checker → · Palette generator →

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