#52218F#52218F

#52218F is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.5% C 0.168 H 298.2°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#52218F
RGBrgb(82, 33, 143)
HSLhsl(267, 63%, 35%)
HSVhsv(267, 77%, 56%)
CMYKcmyk(42.7%, 76.9%, 0%, 43.9%)
CIE-LABlab(26.35, 45.21, -51.78)
CIE-LCHlch(26.35, 68.73, 311.12°)
OKLaboklab(38.54% 0.0796 -0.1481)
OKLCHoklch(38.54% 0.168 298.2)
XYZxyz(8.9802, 4.8646, 26.4471)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52218F #5E8F21
analogous
#21278F #52218F #89218F
triadic
#52218F #8F5221 #218F52
tetradic
#52218F #8F2127 #5E8F21 #218F89
square
#52218F #8F2127 #5E8F21 #218F89
split-complementary
#52218F #8F8921 #278F21
monochromatic
#190A2C #35165D #52218F #6F2CC1 #8E53D7

Accessibility & contrast

On white

10.64
#52218F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#52218F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52218F
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52218F#FFFFFF#000000##FFFFFF
##52218F1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003D8D
Tritanopia (blue-blind)
#433E57
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #52218f;
/* rgb */ color: rgb(82, 33, 143);
/* oklch */ color: oklch(38.5% 0.168 298.2);
Tailwind
colors: {
  custom: {
    50: '#8962b1',
    500: '#52218f',
    950: '#000000',
  },
}
SCSS
$custom: #52218f;
$custom-light: #8962b1;
$custom-dark: #000000;
JSON
{
  "hex": "#52218f",
  "rgb": {
    "r": 82,
    "g": 33,
    "b": 143
  },
  "hsl": {
    "h": 266.727,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.38543,
    "c": 0.16811,
    "h": 298.2
  },
  "luminance": 0.04865
}

Semantic roles & 50–950 ramp

primary
#52218F
secondary
#8CBB51
accent
#E6429D
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0511
muted
#7D7A80

Preview Lab

Preview with #52218F

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

Preview Lab → · Contrast checker → · Palette generator →

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