#52188A#52188A

#52188A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.172 H 301.0°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#52188A
RGBrgb(82, 24, 138)
HSLhsl(271, 70%, 32%)
HSVhsv(271, 83%, 54%)
CMYKcmyk(40.6%, 82.6%, 0%, 45.9%)
CIE-LABlab(24.58, 47.72, -51.55)
CIE-LCHlch(24.58, 70.25, 312.79°)
OKLaboklab(37.17% 0.0886 -0.1473)
OKLCHoklch(37.17% 0.172 301)
XYZxyz(8.3926, 4.2820, 24.4242)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52188A #508A18
analogous
#19188A #52188A #8A1889
triadic
#52188A #8A5218 #188A52
tetradic
#52188A #8A1918 #508A18 #18898A
square
#52188A #8A1918 #508A18 #18898A
split-complementary
#52188A #898A18 #188A19
monochromatic
#140622 #330F56 #52188A #7121BE #903FDE

Accessibility & contrast

On white

11.31
#52188A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#52188A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52188A
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52188A#FFFFFF#000000##FFFFFF
##52188A1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#453852
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #52188a;
/* rgb */ color: rgb(82, 24, 138);
/* oklch */ color: oklch(37.2% 0.172 301.0);
Tailwind
colors: {
  custom: {
    50: '#895dad',
    500: '#52188a',
    950: '#000000',
  },
}
SCSS
$custom: #52188a;
$custom-light: #895dad;
$custom-dark: #000000;
JSON
{
  "hex": "#52188a",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 138
  },
  "hsl": {
    "h": 270.526,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37173,
    "c": 0.17194,
    "h": 301
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#52188A
secondary
#7EBD40
accent
#ED3B92
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52188A

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

Preview Lab → · Contrast checker → · Palette generator →

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