#52196C#52196C

#52196C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.7% C 0.140 H 312.8°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#52196C
RGBrgb(82, 25, 108)
HSLhsl(281, 62%, 26%)
HSVhsv(281, 77%, 42%)
CMYKcmyk(24.1%, 76.9%, 0%, 57.6%)
CIE-LABlab(22.20, 40.15, -36.34)
CIE-LCHlch(22.20, 54.15, 317.86°)
OKLaboklab(34.72% 0.095 -0.1027)
OKLCHoklch(34.72% 0.14 312.8)
XYZxyz(6.5336, 3.5720, 14.5297)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52196C #336C19
analogous
#28196C #52196C #6C195C
triadic
#52196C #6C5219 #196C52
tetradic
#52196C #6C2819 #336C19 #195C6C
square
#52196C #6C2819 #336C19 #195C6C
split-complementary
#52196C #5C6C19 #196C28
monochromatic
#130619 #2C0D3A #52196C #78259E #9D30CF

Accessibility & contrast

On white

12.25
#52196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52196C
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52196C#FFFFFF#000000##FFFFFF
##52196C1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#10366A
Tritanopia (blue-blind)
#4F2B41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52196c;
/* rgb */ color: rgb(82, 25, 108);
/* oklch */ color: oklch(34.7% 0.140 312.8);
Tailwind
colors: {
  custom: {
    50: '#865c97',
    500: '#52196c',
    950: '#000000',
  },
}
SCSS
$custom: #52196c;
$custom-light: #865c97;
$custom-dark: #000000;
JSON
{
  "hex": "#52196c",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 281.205,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34718,
    "c": 0.1399,
    "h": 312.8
  },
  "luminance": 0.03572
}

Semantic roles & 50–950 ramp

primary
#52196C
secondary
#5EA13F
accent
#E54275
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52196C

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

Preview Lab → · Contrast checker → · Palette generator →

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