#52188D#52188D

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

Color values

HEX#52188D
RGBrgb(82, 24, 141)
HSLhsl(270, 71%, 32%)
HSVhsv(270, 83%, 55%)
CMYKcmyk(41.8%, 83%, 0%, 44.7%)
CIE-LABlab(24.86, 48.46, -52.97)
CIE-LCHlch(24.86, 71.79, 312.46°)
OKLaboklab(37.45% 0.0876 -0.1515)
OKLCHoklch(37.45% 0.175 300)
XYZxyz(8.6128, 4.3701, 25.5839)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52188D #538D18
analogous
#18188D #52188D #8D188D
triadic
#52188D #8D5218 #188D52
tetradic
#52188D #8D1818 #538D18 #188D8D
square
#52188D #8D1818 #538D18 #188D8D
split-complementary
#52188D #8D8D18 #188D18
monochromatic
#150624 #340F59 #52188D #7021C1 #8F41DF

Accessibility & contrast

On white

11.21
#52188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#52188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52188D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52188D#FFFFFF#000000##FFFFFF
##52188D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#443954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52188d;
/* rgb */ color: rgb(82, 24, 141);
/* oklch */ color: oklch(37.5% 0.175 300.0);
Tailwind
colors: {
  custom: {
    50: '#895daf',
    500: '#52188d',
    950: '#000000',
  },
}
SCSS
$custom: #52188d;
$custom-light: #895daf;
$custom-dark: #000000;
JSON
{
  "hex": "#52188d",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 269.744,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.3745,
    "c": 0.17502,
    "h": 300
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#52188D
secondary
#81BF42
accent
#EE3A95
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52188D

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

Preview Lab → · Contrast checker → · Palette generator →

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