#52178F#52178F

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

Color values

HEX#52178F
RGBrgb(82, 23, 143)
HSLhsl(270, 72%, 33%)
HSVhsv(270, 84%, 56%)
CMYKcmyk(42.7%, 83.9%, 0%, 43.9%)
CIE-LABlab(24.92, 49.32, -54.11)
CIE-LCHlch(24.92, 73.22, 312.35°)
OKLaboklab(37.55% 0.0877 -0.1549)
OKLCHoklch(37.55% 0.178 299.5)
XYZxyz(8.7427, 4.3897, 26.3680)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52178F #548F17
analogous
#17188F #52178F #8E178F
triadic
#52178F #8F5217 #178F52
tetradic
#52178F #8F1718 #548F17 #178F8E
square
#52178F #8F1718 #548F17 #178F8E
split-complementary
#52178F #8F8E17 #188F17
monochromatic
#160626 #340F5A #52178F #701FC4 #8F40E0

Accessibility & contrast

On white

11.18
#52178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#52178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52178F
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52178F#FFFFFF#000000##FFFFFF
##52178F1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#433A55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52178f;
/* rgb */ color: rgb(82, 23, 143);
/* oklch */ color: oklch(37.5% 0.178 299.5);
Tailwind
colors: {
  custom: {
    50: '#895db1',
    500: '#52178f',
    950: '#000000',
  },
}
SCSS
$custom: #52178f;
$custom-light: #895db1;
$custom-dark: #000000;
JSON
{
  "hex": "#52178f",
  "rgb": {
    "r": 82,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 269.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37549,
    "c": 0.17796,
    "h": 299.5
  },
  "luminance": 0.0439
}

Semantic roles & 50–950 ramp

primary
#52178F
secondary
#82C141
accent
#EF3995
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #52178F

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

Preview Lab → · Contrast checker → · Palette generator →

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