#52196A#52196A

#52196A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.138 H 313.8°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#52196A
RGBrgb(82, 25, 106)
HSLhsl(282, 62%, 26%)
HSVhsv(282, 76%, 42%)
CMYKcmyk(22.6%, 76.4%, 0%, 58.4%)
CIE-LABlab(22.05, 39.70, -35.28)
CIE-LCHlch(22.05, 53.11, 318.37°)
OKLaboklab(34.56% 0.0953 -0.0996)
OKLCHoklch(34.56% 0.138 313.8)
XYZxyz(6.4284, 3.5299, 13.9756)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52196A #316A19
analogous
#29196A #52196A #6A1959
triadic
#52196A #6A5219 #196A52
tetradic
#52196A #6A2919 #316A19 #19596A
square
#52196A #6A2919 #316A19 #19596A
split-complementary
#52196A #596A19 #196A29
monochromatic
#130619 #2C0D38 #52196A #78259C #9F30CD

Accessibility & contrast

On white

12.31
#52196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#52196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52196A
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52196A#FFFFFF#000000##FFFFFF
##52196A1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#133668
Tritanopia (blue-blind)
#502B40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52196a;
/* rgb */ color: rgb(82, 25, 106);
/* oklch */ color: oklch(34.6% 0.138 313.8);
Tailwind
colors: {
  custom: {
    50: '#865c95',
    500: '#52196a',
    950: '#000000',
  },
}
SCSS
$custom: #52196a;
$custom-light: #865c95;
$custom-dark: #000000;
JSON
{
  "hex": "#52196a",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 282.222,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34563,
    "c": 0.13784,
    "h": 313.8
  },
  "luminance": 0.0353
}

Semantic roles & 50–950 ramp

primary
#52196A
secondary
#5CA03F
accent
#E54373
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52196A

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

Preview Lab → · Contrast checker → · Palette generator →

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