#52197A#52197A

#52197A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.154 H 306.7°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#52197A
RGBrgb(82, 25, 122)
HSLhsl(275, 66%, 29%)
HSVhsv(275, 80%, 48%)
CMYKcmyk(32.8%, 79.5%, 0%, 52.2%)
CIE-LABlab(23.32, 43.44, -43.53)
CIE-LCHlch(23.32, 61.49, 314.94°)
OKLaboklab(35.86% 0.0923 -0.1238)
OKLCHoklch(35.86% 0.154 306.7)
XYZxyz(7.3394, 3.8943, 18.7736)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52197A #417A19
analogous
#22197A #52197A #7A1972
triadic
#52197A #7A5219 #197A52
tetradic
#52197A #7A2219 #417A19 #19727A
square
#52197A #7A2219 #417A19 #19727A
split-complementary
#52197A #727A19 #197A22
monochromatic
#110519 #300F47 #52197A #7423AD #9537D6

Accessibility & contrast

On white

11.81
#52197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#52197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52197A
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52197A#FFFFFF#000000##FFFFFF
##52197A1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#4B3149
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52197a;
/* rgb */ color: rgb(82, 25, 122);
/* oklch */ color: oklch(35.9% 0.154 306.7);
Tailwind
colors: {
  custom: {
    50: '#875da1',
    500: '#52197a',
    950: '#000000',
  },
}
SCSS
$custom: #52197a;
$custom-light: #875da1;
$custom-dark: #000000;
JSON
{
  "hex": "#52197a",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 275.258,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35857,
    "c": 0.15439,
    "h": 306.7
  },
  "luminance": 0.03894
}

Semantic roles & 50–950 ramp

primary
#52197A
secondary
#6EAF40
accent
#E93F85
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52197A

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

Preview Lab → · Contrast checker → · Palette generator →

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