#52196E#52196E

#52196E is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.142 H 311.9°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#52196E
RGBrgb(82, 25, 110)
HSLhsl(280, 63%, 26%)
HSVhsv(280, 77%, 43%)
CMYKcmyk(25.5%, 77.3%, 0%, 56.9%)
CIE-LABlab(22.36, 40.61, -37.38)
CIE-LCHlch(22.36, 55.20, 317.37°)
OKLaboklab(34.88% 0.0947 -0.1057)
OKLCHoklch(34.88% 0.142 311.9)
XYZxyz(6.6413, 3.6151, 15.0968)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52196E #356E19
analogous
#28196E #52196E #6E1960
triadic
#52196E #6E5219 #196E52
tetradic
#52196E #6E2819 #356E19 #19606E
square
#52196E #6E2819 #356E19 #19606E
split-complementary
#52196E #606E19 #196E28
monochromatic
#130619 #2D0E3C #52196E #7724A0 #9C31D0

Accessibility & contrast

On white

12.19
#52196E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#52196E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52196E
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52196E#FFFFFF#000000##FFFFFF
##52196E1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#0C376C
Tritanopia (blue-blind)
#4F2C42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52196e;
/* rgb */ color: rgb(82, 25, 110);
/* oklch */ color: oklch(34.9% 0.142 311.9);
Tailwind
colors: {
  custom: {
    50: '#865c98',
    500: '#52196e',
    950: '#000000',
  },
}
SCSS
$custom: #52196e;
$custom-light: #865c98;
$custom-dark: #000000;
JSON
{
  "hex": "#52196e",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 110
  },
  "hsl": {
    "h": 280.235,
    "s": 62.963,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34875,
    "c": 0.14196,
    "h": 311.9
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#52196E
secondary
#60A33F
accent
#E64278
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #52196E

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

Preview Lab → · Contrast checker → · Palette generator →

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