#52196D#52196D

#52196D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.141 H 312.3°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#52196D
RGBrgb(82, 25, 109)
HSLhsl(281, 63%, 26%)
HSVhsv(281, 77%, 43%)
CMYKcmyk(24.8%, 77.1%, 0%, 57.3%)
CIE-LABlab(22.28, 40.38, -36.86)
CIE-LCHlch(22.28, 54.68, 317.61°)
OKLaboklab(34.8% 0.0949 -0.1042)
OKLCHoklch(34.8% 0.141 312.3)
XYZxyz(6.5871, 3.5934, 14.8116)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52196D #346D19
analogous
#28196D #52196D #6D195E
triadic
#52196D #6D5219 #196D52
tetradic
#52196D #6D2819 #346D19 #195E6D
square
#52196D #6D2819 #346D19 #195E6D
split-complementary
#52196D #5E6D19 #196D28
monochromatic
#130619 #2D0E3B #52196D #77249F #9D31D0

Accessibility & contrast

On white

12.22
#52196D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52196D
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52196D#FFFFFF#000000##FFFFFF
##52196D1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#0E366B
Tritanopia (blue-blind)
#4F2C41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52196d;
/* rgb */ color: rgb(82, 25, 109);
/* oklch */ color: oklch(34.8% 0.141 312.3);
Tailwind
colors: {
  custom: {
    50: '#865c97',
    500: '#52196d',
    950: '#000000',
  },
}
SCSS
$custom: #52196d;
$custom-light: #865c97;
$custom-dark: #000000;
JSON
{
  "hex": "#52196d",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 109
  },
  "hsl": {
    "h": 280.714,
    "s": 62.687,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34796,
    "c": 0.14092,
    "h": 312.3
  },
  "luminance": 0.03593
}

Semantic roles & 50–950 ramp

primary
#52196D
secondary
#5FA23F
accent
#E64277
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52196D

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

Preview Lab → · Contrast checker → · Palette generator →

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