#52178A#52178A

#52178A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.173 H 301.1°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#52178A
RGBrgb(82, 23, 138)
HSLhsl(271, 71%, 32%)
HSVhsv(271, 83%, 54%)
CMYKcmyk(40.6%, 83.3%, 0%, 45.9%)
CIE-LABlab(24.45, 48.10, -51.76)
CIE-LCHlch(24.45, 70.66, 312.90°)
OKLaboklab(37.08% 0.0894 -0.148)
OKLCHoklch(37.08% 0.173 301.1)
XYZxyz(8.3724, 4.2415, 24.4174)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52178A #4F8A17
analogous
#19178A #52178A #8A1789
triadic
#52178A #8A5217 #178A52
tetradic
#52178A #8A1917 #4F8A17 #17898A
square
#52178A #8A1917 #4F8A17 #17898A
split-complementary
#52178A #898A17 #178A19
monochromatic
#140621 #330E56 #52178A #7120BE #903DDF

Accessibility & contrast

On white

11.36
#52178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#52178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52178A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52178A#FFFFFF#000000##FFFFFF
##52178A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003988
Tritanopia (blue-blind)
#453852
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52178a;
/* rgb */ color: rgb(82, 23, 138);
/* oklch */ color: oklch(37.1% 0.173 301.1);
Tailwind
colors: {
  custom: {
    50: '#895dad',
    500: '#52178a',
    950: '#000000',
  },
}
SCSS
$custom: #52178a;
$custom-light: #895dad;
$custom-dark: #000000;
JSON
{
  "hex": "#52178a",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 270.783,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37084,
    "c": 0.17285,
    "h": 301.1
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#52178A
secondary
#7DBE3F
accent
#EE3A92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52178A

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

Preview Lab → · Contrast checker → · Palette generator →

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