#52196B#52196B

#52196B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.139 H 313.3°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#52196B
RGBrgb(82, 25, 107)
HSLhsl(282, 62%, 26%)
HSVhsv(282, 77%, 42%)
CMYKcmyk(23.4%, 76.6%, 0%, 58%)
CIE-LABlab(22.13, 39.93, -35.81)
CIE-LCHlch(22.13, 53.63, 318.11°)
OKLaboklab(34.64% 0.0952 -0.1011)
OKLCHoklch(34.64% 0.139 313.3)
XYZxyz(6.4807, 3.5508, 14.2511)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52196B #326B19
analogous
#29196B #52196B #6B195B
triadic
#52196B #6B5219 #196B52
tetradic
#52196B #6B2919 #326B19 #195B6B
square
#52196B #6B2919 #326B19 #195B6B
split-complementary
#52196B #5B6B19 #196B29
monochromatic
#130619 #2C0D39 #52196B #78259D #9E30CE

Accessibility & contrast

On white

12.28
#52196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52196B
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52196B#FFFFFF#000000##FFFFFF
##52196B1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#123669
Tritanopia (blue-blind)
#4F2B40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #52196b;
/* rgb */ color: rgb(82, 25, 107);
/* oklch */ color: oklch(34.6% 0.139 313.3);
Tailwind
colors: {
  custom: {
    50: '#865c96',
    500: '#52196b',
    950: '#000000',
  },
}
SCSS
$custom: #52196b;
$custom-light: #865c96;
$custom-dark: #000000;
JSON
{
  "hex": "#52196b",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 281.707,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3464,
    "c": 0.13887,
    "h": 313.3
  },
  "luminance": 0.03551
}

Semantic roles & 50–950 ramp

primary
#52196B
secondary
#5DA13F
accent
#E54374
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #52196B

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

Preview Lab → · Contrast checker → · Palette generator →

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