#52197C#52197C

#52197C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.156 H 305.9°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#52197C
RGBrgb(82, 25, 124)
HSLhsl(275, 66%, 29%)
HSVhsv(275, 80%, 49%)
CMYKcmyk(33.9%, 79.8%, 0%, 51.4%)
CIE-LABlab(23.49, 43.92, -44.52)
CIE-LCHlch(23.49, 62.54, 314.61°)
OKLaboklab(36.03% 0.0918 -0.1267)
OKLCHoklch(36.03% 0.156 305.9)
XYZxyz(7.4646, 3.9444, 19.4330)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52197C #437C19
analogous
#20197C #52197C #7C1975
triadic
#52197C #7C5219 #197C52
tetradic
#52197C #7C2019 #437C19 #19757C
square
#52197C #7C2019 #437C19 #19757C
split-complementary
#52197C #757C19 #197C20
monochromatic
#110519 #300F49 #52197C #7423AF #9438D7

Accessibility & contrast

On white

11.74
#52197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#52197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52197C
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52197C#FFFFFF#000000##FFFFFF
##52197C1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#4A324A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52197c;
/* rgb */ color: rgb(82, 25, 124);
/* oklch */ color: oklch(36.0% 0.156 305.9);
Tailwind
colors: {
  custom: {
    50: '#875da3',
    500: '#52197c',
    950: '#000000',
  },
}
SCSS
$custom: #52197c;
$custom-light: #875da3;
$custom-dark: #000000;
JSON
{
  "hex": "#52197c",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 274.545,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.15646,
    "h": 305.9
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#52197C
secondary
#70B040
accent
#E93E87
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52197C

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

Preview Lab → · Contrast checker → · Palette generator →

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