#52188B#52188B

#52188B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.173 H 300.7°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#52188B
RGBrgb(82, 24, 139)
HSLhsl(270, 71%, 32%)
HSVhsv(270, 83%, 55%)
CMYKcmyk(41%, 82.7%, 0%, 45.5%)
CIE-LABlab(24.67, 47.97, -52.02)
CIE-LCHlch(24.67, 70.77, 312.68°)
OKLaboklab(37.27% 0.0883 -0.1487)
OKLCHoklch(37.27% 0.173 300.7)
XYZxyz(8.4653, 4.3111, 24.8072)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52188B #518B18
analogous
#19188B #52188B #8B188B
triadic
#52188B #8B5218 #188B52
tetradic
#52188B #8B1918 #518B18 #188B8B
square
#52188B #8B1918 #518B18 #188B8B
split-complementary
#52188B #8B8B18 #188B19
monochromatic
#140623 #330F57 #52188B #7121BF #8F3FDE

Accessibility & contrast

On white

11.28
#52188B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52188B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52188B#FFFFFF#000000##FFFFFF
##52188B1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#453852
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #52188b;
/* rgb */ color: rgb(82, 24, 139);
/* oklch */ color: oklch(37.3% 0.173 300.7);
Tailwind
colors: {
  custom: {
    50: '#895dae',
    500: '#52188b',
    950: '#000000',
  },
}
SCSS
$custom: #52188b;
$custom-light: #895dae;
$custom-dark: #000000;
JSON
{
  "hex": "#52188b",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 139
  },
  "hsl": {
    "h": 270.261,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.37265,
    "c": 0.17297,
    "h": 300.7
  },
  "luminance": 0.04311
}

Semantic roles & 50–950 ramp

primary
#52188B
secondary
#7FBE40
accent
#ED3A93
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #52188B

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

Preview Lab → · Contrast checker → · Palette generator →

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