#52197F#52197F

#52197F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.160 H 304.8°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#52197F
RGBrgb(82, 25, 127)
HSLhsl(274, 67%, 30%)
HSVhsv(274, 80%, 50%)
CMYKcmyk(35.4%, 80.3%, 0%, 50.2%)
CIE-LABlab(23.74, 44.65, -46.01)
CIE-LCHlch(23.74, 64.11, 314.14°)
OKLaboklab(36.29% 0.091 -0.1311)
OKLCHoklch(36.29% 0.16 304.8)
XYZxyz(7.6572, 4.0214, 20.4474)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52197F #467F19
analogous
#1F197F #52197F #7F1979
triadic
#52197F #7F5219 #197F52
tetradic
#52197F #7F1F19 #467F19 #19797F
square
#52197F #7F1F19 #467F19 #19797F
split-complementary
#52197F #797F19 #197F1F
monochromatic
#11051A #310F4C #52197F #7323B2 #923AD8

Accessibility & contrast

On white

11.64
#52197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#52197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52197F
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52197F#FFFFFF#000000##FFFFFF
##52197F1.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#49344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52197f;
/* rgb */ color: rgb(82, 25, 127);
/* oklch */ color: oklch(36.3% 0.160 304.8);
Tailwind
colors: {
  custom: {
    50: '#885da5',
    500: '#52197f',
    950: '#000000',
  },
}
SCSS
$custom: #52197f;
$custom-light: #885da5;
$custom-dark: #000000;
JSON
{
  "hex": "#52197f",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 273.529,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36286,
    "c": 0.15958,
    "h": 304.8
  },
  "luminance": 0.04021
}

Semantic roles & 50–950 ramp

primary
#52197F
secondary
#73B341
accent
#EA3E8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52197F

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

Preview Lab → · Contrast checker → · Palette generator →

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