#52198C#52198C

#52198C is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.173 H 300.2°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#52198C
RGBrgb(82, 25, 140)
HSLhsl(270, 70%, 32%)
HSVhsv(270, 82%, 55%)
CMYKcmyk(41.4%, 82.1%, 0%, 45.1%)
CIE-LABlab(24.90, 47.83, -52.28)
CIE-LCHlch(24.90, 70.86, 312.46°)
OKLaboklab(37.45% 0.0872 -0.1495)
OKLCHoklch(37.45% 0.173 300.2)
XYZxyz(8.5597, 4.3825, 25.2008)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52198C #538C19
analogous
#191A8C #52198C #8C198C
triadic
#52198C #8C5219 #198C52
tetradic
#52198C #8C191A #538C19 #198C8C
square
#52198C #8C191A #538C19 #198C8C
split-complementary
#52198C #8C8C19 #1A8C19
monochromatic
#150624 #341058 #52198C #7022C0 #8F42DD

Accessibility & contrast

On white

11.19
#52198C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#52198C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52198C
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52198C#FFFFFF#000000##FFFFFF
##52198C1.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#443953
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52198c;
/* rgb */ color: rgb(82, 25, 140);
/* oklch */ color: oklch(37.4% 0.173 300.2);
Tailwind
colors: {
  custom: {
    50: '#895eaf',
    500: '#52198c',
    950: '#000000',
  },
}
SCSS
$custom: #52198c;
$custom-light: #895eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#52198c",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 140
  },
  "hsl": {
    "h": 269.739,
    "s": 69.697,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37448,
    "c": 0.17308,
    "h": 300.2
  },
  "luminance": 0.04383
}

Semantic roles & 50–950 ramp

primary
#52198C
secondary
#81BE43
accent
#ED3B95
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52198C

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

Preview Lab → · Contrast checker → · Palette generator →

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