#52198A#52198A

#52198A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.171 H 300.9°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#52198A
RGBrgb(82, 25, 138)
HSLhsl(270, 69%, 32%)
HSVhsv(270, 82%, 54%)
CMYKcmyk(40.6%, 81.9%, 0%, 45.9%)
CIE-LABlab(24.71, 47.34, -51.33)
CIE-LCHlch(24.71, 69.83, 312.68°)
OKLaboklab(37.27% 0.0878 -0.1467)
OKLCHoklch(37.27% 0.171 300.9)
XYZxyz(8.4136, 4.3240, 24.4312)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52198A #518A19
analogous
#19198A #52198A #8A198A
triadic
#52198A #8A5219 #198A52
tetradic
#52198A #8A1919 #518A19 #198A8A
square
#52198A #8A1919 #518A19 #198A8A
split-complementary
#52198A #8A8A19 #198A19
monochromatic
#140622 #331056 #52198A #7122BE #8F41DD

Accessibility & contrast

On white

11.26
#52198A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52198A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52198A
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52198A#FFFFFF#000000##FFFFFF
##52198A1.0011.261.8611.26
#FFFFFF11.261.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#453852
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52198a;
/* rgb */ color: rgb(82, 25, 138);
/* oklch */ color: oklch(37.3% 0.171 300.9);
Tailwind
colors: {
  custom: {
    50: '#895ead',
    500: '#52198a',
    950: '#000000',
  },
}
SCSS
$custom: #52198a;
$custom-light: #895ead;
$custom-dark: #000000;
JSON
{
  "hex": "#52198a",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 138
  },
  "hsl": {
    "h": 270.265,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37265,
    "c": 0.171,
    "h": 300.9
  },
  "luminance": 0.04324
}

Semantic roles & 50–950 ramp

primary
#52198A
secondary
#7FBD42
accent
#EC3C93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52198A

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

Preview Lab → · Contrast checker → · Palette generator →

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