#52188C#52188C

#52188C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.174 H 300.4°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#52188C
RGBrgb(82, 24, 140)
HSLhsl(270, 71%, 32%)
HSVhsv(270, 83%, 55%)
CMYKcmyk(41.4%, 82.9%, 0%, 45.1%)
CIE-LABlab(24.77, 48.22, -52.50)
CIE-LCHlch(24.77, 71.28, 312.57°)
OKLaboklab(37.36% 0.088 -0.1501)
OKLCHoklch(37.36% 0.174 300.4)
XYZxyz(8.5387, 4.3405, 25.1938)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52188C #528C18
analogous
#18188C #52188C #8C188C
triadic
#52188C #8C5218 #188C52
tetradic
#52188C #8C1818 #528C18 #188C8C
square
#52188C #8C1818 #528C18 #188C8C
split-complementary
#52188C #8C8C18 #188C18
monochromatic
#150624 #330F58 #52188C #7121C0 #8F40DE

Accessibility & contrast

On white

11.24
#52188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52188C
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52188C#FFFFFF#000000##FFFFFF
##52188C1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #52188c;
/* rgb */ color: rgb(82, 24, 140);
/* oklch */ color: oklch(37.4% 0.174 300.4);
Tailwind
colors: {
  custom: {
    50: '#895daf',
    500: '#52188c',
    950: '#000000',
  },
}
SCSS
$custom: #52188c;
$custom-light: #895daf;
$custom-dark: #000000;
JSON
{
  "hex": "#52188c",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 270,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37358,
    "c": 0.17399,
    "h": 300.4
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#52188C
secondary
#80BF41
accent
#ED3A94
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52188C

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

Preview Lab → · Contrast checker → · Palette generator →

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