#52198E#52198E

#52198E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.175 H 299.6°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#52198E
RGBrgb(82, 25, 142)
HSLhsl(269, 70%, 33%)
HSVhsv(269, 82%, 56%)
CMYKcmyk(42.3%, 82.4%, 0%, 44.3%)
CIE-LABlab(25.08, 48.33, -53.22)
CIE-LCHlch(25.08, 71.89, 312.24°)
OKLaboklab(37.63% 0.0865 -0.1523)
OKLCHoklch(37.63% 0.175 299.6)
XYZxyz(8.7086, 4.4420, 25.9845)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52198E #558E19
analogous
#191A8E #52198E #8D198E
triadic
#52198E #8E5219 #198E52
tetradic
#52198E #8E191A #558E19 #198E8D
square
#52198E #8E191A #558E19 #198E8D
split-complementary
#52198E #8E8D19 #1A8E19
monochromatic
#160726 #34105A #52198E #7022C2 #8F43DE

Accessibility & contrast

On white

11.12
#52198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#52198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52198E
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52198E#FFFFFF#000000##FFFFFF
##52198E1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#433A54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52198e;
/* rgb */ color: rgb(82, 25, 142);
/* oklch */ color: oklch(37.6% 0.175 299.6);
Tailwind
colors: {
  custom: {
    50: '#895eb0',
    500: '#52198e',
    950: '#000000',
  },
}
SCSS
$custom: #52198e;
$custom-light: #895eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#52198e",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 269.231,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37633,
    "c": 0.17514,
    "h": 299.6
  },
  "luminance": 0.04442
}

Semantic roles & 50–950 ramp

primary
#52198E
secondary
#83BF44
accent
#ED3B96
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #52198E

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

Preview Lab → · Contrast checker → · Palette generator →

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