#52197B#52197B

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

Color values

HEX#52197B
RGBrgb(82, 25, 123)
HSLhsl(275, 66%, 29%)
HSVhsv(275, 80%, 48%)
CMYKcmyk(33.3%, 79.7%, 0%, 51.8%)
CIE-LABlab(23.40, 43.68, -44.03)
CIE-LCHlch(23.40, 62.02, 314.77°)
OKLaboklab(35.94% 0.092 -0.1253)
OKLCHoklch(35.94% 0.155 306.3)
XYZxyz(7.4017, 3.9192, 19.1016)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52197B #427B19
analogous
#21197B #52197B #7B1973
triadic
#52197B #7B5219 #197B52
tetradic
#52197B #7B2119 #427B19 #19737B
square
#52197B #7B2119 #427B19 #19737B
split-complementary
#52197B #737B19 #197B21
monochromatic
#110519 #300F48 #52197B #7423AE #9438D7

Accessibility & contrast

On white

11.77
#52197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52197B
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52197B#FFFFFF#000000##FFFFFF
##52197B1.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#4B3249
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52197b;
/* rgb */ color: rgb(82, 25, 123);
/* oklch */ color: oklch(35.9% 0.155 306.3);
Tailwind
colors: {
  custom: {
    50: '#875da2',
    500: '#52197b',
    950: '#000000',
  },
}
SCSS
$custom: #52197b;
$custom-light: #875da2;
$custom-dark: #000000;
JSON
{
  "hex": "#52197b",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 274.898,
    "s": 66.216,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35942,
    "c": 0.15543,
    "h": 306.3
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#52197B
secondary
#6FAF40
accent
#E93F86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52197B

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

Preview Lab → · Contrast checker → · Palette generator →

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