#52188E#52188E

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

Color values

HEX#52188E
RGBrgb(82, 24, 142)
HSLhsl(269, 71%, 33%)
HSVhsv(269, 83%, 56%)
CMYKcmyk(42.3%, 83.1%, 0%, 44.3%)
CIE-LABlab(24.95, 48.71, -53.44)
CIE-LCHlch(24.95, 72.31, 312.35°)
OKLaboklab(37.54% 0.0873 -0.1529)
OKLCHoklch(37.54% 0.176 299.7)
XYZxyz(8.6876, 4.4000, 25.9775)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52188E #548E18
analogous
#18198E #52188E #8D188E
triadic
#52188E #8E5218 #188E52
tetradic
#52188E #8E1819 #548E18 #188E8D
square
#52188E #8E1819 #548E18 #188E8D
split-complementary
#52188E #8E8D18 #198E18
monochromatic
#160625 #340F5A #52188E #7021C2 #8F41DF

Accessibility & contrast

On white

11.17
#52188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#52188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52188E
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52188E#FFFFFF#000000##FFFFFF
##52188E1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52188e;
/* rgb */ color: rgb(82, 24, 142);
/* oklch */ color: oklch(37.5% 0.176 299.7);
Tailwind
colors: {
  custom: {
    50: '#895db0',
    500: '#52188e',
    950: '#000000',
  },
}
SCSS
$custom: #52188e;
$custom-light: #895db0;
$custom-dark: #000000;
JSON
{
  "hex": "#52188e",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 269.492,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37543,
    "c": 0.17605,
    "h": 299.7
  },
  "luminance": 0.044
}

Semantic roles & 50–950 ramp

primary
#52188E
secondary
#82C042
accent
#EE3A95
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #52188E

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

Preview Lab → · Contrast checker → · Palette generator →

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