#52197D#52197D

#52197D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.158 H 305.5°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#52197D
RGBrgb(82, 25, 125)
HSLhsl(274, 67%, 29%)
HSVhsv(274, 80%, 49%)
CMYKcmyk(34.4%, 80%, 0%, 51%)
CIE-LABlab(23.57, 44.16, -45.02)
CIE-LCHlch(23.57, 63.06, 314.45°)
OKLaboklab(36.11% 0.0915 -0.1282)
OKLCHoklch(36.11% 0.158 305.5)
XYZxyz(7.5281, 3.9698, 19.7677)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52197D #447D19
analogous
#20197D #52197D #7D1976
triadic
#52197D #7D5219 #197D52
tetradic
#52197D #7D2019 #447D19 #19767D
square
#52197D #7D2019 #447D19 #19767D
split-complementary
#52197D #767D19 #197D20
monochromatic
#11051A #310F4A #52197D #7323B0 #9339D7

Accessibility & contrast

On white

11.71
#52197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52197D
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52197D#FFFFFF#000000##FFFFFF
##52197D1.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#4A334B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52197d;
/* rgb */ color: rgb(82, 25, 125);
/* oklch */ color: oklch(36.1% 0.158 305.5);
Tailwind
colors: {
  custom: {
    50: '#875da3',
    500: '#52197d',
    950: '#000000',
  },
}
SCSS
$custom: #52197d;
$custom-light: #875da3;
$custom-dark: #000000;
JSON
{
  "hex": "#52197d",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 274.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36113,
    "c": 0.1575,
    "h": 305.5
  },
  "luminance": 0.0397
}

Semantic roles & 50–950 ramp

primary
#52197D
secondary
#71B140
accent
#EA3E88
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52197D

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

Preview Lab → · Contrast checker → · Palette generator →

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