#52198D#52198D

#52198D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.174 H 299.9°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#52198D
RGBrgb(82, 25, 141)
HSLhsl(269, 70%, 33%)
HSVhsv(269, 82%, 55%)
CMYKcmyk(41.8%, 82.3%, 0%, 44.7%)
CIE-LABlab(24.99, 48.08, -52.75)
CIE-LCHlch(24.99, 71.38, 312.35°)
OKLaboklab(37.54% 0.0869 -0.1509)
OKLCHoklch(37.54% 0.174 299.9)
XYZxyz(8.6338, 4.4121, 25.5909)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52198D #548D19
analogous
#191A8D #52198D #8C198D
triadic
#52198D #8D5219 #198D52
tetradic
#52198D #8D191A #548D19 #198D8C
square
#52198D #8D191A #548D19 #198D8C
split-complementary
#52198D #8D8C19 #1A8D19
monochromatic
#160725 #341059 #52198D #7022C1 #8F43DE

Accessibility & contrast

On white

11.16
#52198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#52198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52198D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52198D#FFFFFF#000000##FFFFFF
##52198D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#443A54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52198d;
/* rgb */ color: rgb(82, 25, 141);
/* oklch */ color: oklch(37.5% 0.174 299.9);
Tailwind
colors: {
  custom: {
    50: '#895eaf',
    500: '#52198d',
    950: '#000000',
  },
}
SCSS
$custom: #52198d;
$custom-light: #895eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#52198d",
  "rgb": {
    "r": 82,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 269.483,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37541,
    "c": 0.17411,
    "h": 299.9
  },
  "luminance": 0.04412
}

Semantic roles & 50–950 ramp

primary
#52198D
secondary
#82BF43
accent
#ED3B95
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52198D

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

Preview Lab → · Contrast checker → · Palette generator →

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