#52187C#52187C

#52187C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.158 H 306.0°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#52187C
RGBrgb(82, 24, 124)
HSLhsl(275, 68%, 29%)
HSVhsv(275, 81%, 49%)
CMYKcmyk(33.9%, 80.6%, 0%, 51.4%)
CIE-LABlab(23.35, 44.32, -44.75)
CIE-LCHlch(23.35, 62.99, 314.72°)
OKLaboklab(35.93% 0.0927 -0.1274)
OKLCHoklch(35.93% 0.158 306)
XYZxyz(7.4436, 3.9024, 19.4260)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52187C #427C18
analogous
#20187C #52187C #7C1874
triadic
#52187C #7C5218 #187C52
tetradic
#52187C #7C2018 #427C18 #18747C
square
#52187C #7C2018 #427C18 #18747C
split-complementary
#52187C #747C18 #187C20
monochromatic
#11051A #300E49 #52187C #7422AF #9436D8

Accessibility & contrast

On white

11.80
#52187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#52187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52187C
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52187C#FFFFFF#000000##FFFFFF
##52187C1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#4A324A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52187c;
/* rgb */ color: rgb(82, 24, 124);
/* oklch */ color: oklch(35.9% 0.158 306.0);
Tailwind
colors: {
  custom: {
    50: '#875ca3',
    500: '#52187c',
    950: '#000000',
  },
}
SCSS
$custom: #52187c;
$custom-light: #875ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#52187c",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 274.8,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35929,
    "c": 0.15753,
    "h": 306
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

primary
#52187C
secondary
#6FB13F
accent
#EA3D86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52187C

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

Preview Lab → · Contrast checker → · Palette generator →

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