#52178E#52178E

#52178E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.177 H 299.8°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#52178E
RGBrgb(82, 23, 142)
HSLhsl(270, 72%, 32%)
HSVhsv(270, 84%, 56%)
CMYKcmyk(42.3%, 83.8%, 0%, 44.3%)
CIE-LABlab(24.83, 49.08, -53.64)
CIE-LCHlch(24.83, 72.71, 312.46°)
OKLaboklab(37.46% 0.088 -0.1535)
OKLCHoklch(37.46% 0.177 299.8)
XYZxyz(8.6673, 4.3595, 25.9708)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52178E #538E17
analogous
#17188E #52178E #8E178E
triadic
#52178E #8E5217 #178E52
tetradic
#52178E #8E1718 #538E17 #178E8E
square
#52178E #8E1718 #538E17 #178E8E
split-complementary
#52178E #8E8E17 #188E17
monochromatic
#150625 #340E59 #52178E #7020C3 #8F3FE0

Accessibility & contrast

On white

11.22
#52178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52178E
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52178E#FFFFFF#000000##FFFFFF
##52178E1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#433954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52178e;
/* rgb */ color: rgb(82, 23, 142);
/* oklch */ color: oklch(37.5% 0.177 299.8);
Tailwind
colors: {
  custom: {
    50: '#895db0',
    500: '#52178e',
    950: '#000000',
  },
}
SCSS
$custom: #52178e;
$custom-light: #895db0;
$custom-dark: #000000;
JSON
{
  "hex": "#52178e",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 269.748,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37456,
    "c": 0.17694,
    "h": 299.8
  },
  "luminance": 0.0436
}

Semantic roles & 50–950 ramp

primary
#52178E
secondary
#81C040
accent
#EF3995
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #52178E

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

Preview Lab → · Contrast checker → · Palette generator →

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