#52218A#52218A

#52218A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.163 H 299.8°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#52218A
RGBrgb(82, 33, 138)
HSLhsl(268, 61%, 34%)
HSVhsv(268, 76%, 54%)
CMYKcmyk(40.6%, 76.1%, 0%, 45.9%)
CIE-LABlab(25.91, 43.90, -49.38)
CIE-LCHlch(25.91, 66.08, 311.64°)
OKLaboklab(38.1% 0.0808 -0.141)
OKLCHoklch(38.1% 0.163 299.8)
XYZxyz(8.6098, 4.7164, 24.4966)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52218A #598A21
analogous
#21248A #52218A #86218A
triadic
#52218A #8A5221 #218A52
tetradic
#52218A #8A2124 #598A21 #218A86
square
#52218A #8A2124 #598A21 #218A86
split-complementary
#52218A #8A8621 #248A21
monochromatic
#170927 #351559 #52218A #6F2DBB #8E50D5

Accessibility & contrast

On white

10.81
#52218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#52218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52218A
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52218A#FFFFFF#000000##FFFFFF
##52218A1.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#453C54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #52218a;
/* rgb */ color: rgb(82, 33, 138);
/* oklch */ color: oklch(38.1% 0.163 299.8);
Tailwind
colors: {
  custom: {
    50: '#8861ad',
    500: '#52218a',
    950: '#000000',
  },
}
SCSS
$custom: #52218a;
$custom-light: #8861ad;
$custom-dark: #000000;
JSON
{
  "hex": "#52218a",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 268,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.38103,
    "c": 0.16256,
    "h": 299.8
  },
  "luminance": 0.04717
}

Semantic roles & 50–950 ramp

primary
#52218A
secondary
#87B94E
accent
#E54399
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52218A

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

Preview Lab → · Contrast checker → · Palette generator →

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