#52178C#52178C

#52178C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.175 H 300.5°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#52178C
RGBrgb(82, 23, 140)
HSLhsl(270, 72%, 32%)
HSVhsv(270, 84%, 55%)
CMYKcmyk(41.4%, 83.6%, 0%, 45.1%)
CIE-LABlab(24.64, 48.59, -52.70)
CIE-LCHlch(24.64, 71.68, 312.67°)
OKLaboklab(37.27% 0.0887 -0.1507)
OKLCHoklch(37.27% 0.175 300.5)
XYZxyz(8.5185, 4.3000, 25.1870)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52178C #518C17
analogous
#17178C #52178C #8C178C
triadic
#52178C #8C5217 #178C52
tetradic
#52178C #8C1717 #518C17 #178C8C
square
#52178C #8C1717 #518C17 #178C8C
split-complementary
#52178C #8C8C17 #178C17
monochromatic
#140623 #330E57 #52178C #7120C1 #8F3EDF

Accessibility & contrast

On white

11.29
#52178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52178C
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52178C#FFFFFF#000000##FFFFFF
##52178C1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#443853
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52178c;
/* rgb */ color: rgb(82, 23, 140);
/* oklch */ color: oklch(37.3% 0.175 300.5);
Tailwind
colors: {
  custom: {
    50: '#895daf',
    500: '#52178c',
    950: '#000000',
  },
}
SCSS
$custom: #52178c;
$custom-light: #895daf;
$custom-dark: #000000;
JSON
{
  "hex": "#52178c",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 270.256,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37269,
    "c": 0.17489,
    "h": 300.5
  },
  "luminance": 0.043
}

Semantic roles & 50–950 ramp

primary
#52178C
secondary
#7FBF3F
accent
#EF3993
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52178C

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

Preview Lab → · Contrast checker → · Palette generator →

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