#52187D#52187D

#52187D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.159 H 305.6°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#52187D
RGBrgb(82, 24, 125)
HSLhsl(274, 68%, 29%)
HSVhsv(274, 81%, 49%)
CMYKcmyk(34.4%, 80.8%, 0%, 51%)
CIE-LABlab(23.43, 44.57, -45.25)
CIE-LCHlch(23.43, 63.51, 314.56°)
OKLaboklab(36.02% 0.0924 -0.1288)
OKLCHoklch(36.02% 0.159 305.6)
XYZxyz(7.5072, 3.9278, 19.7607)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52187D #437D18
analogous
#1F187D #52187D #7D1876
triadic
#52187D #7D5218 #187D52
tetradic
#52187D #7D1F18 #437D18 #18767D
square
#52187D #7D1F18 #437D18 #18767D
split-complementary
#52187D #767D18 #187D1F
monochromatic
#11051A #300E4A #52187D #7422B0 #9437D9

Accessibility & contrast

On white

11.76
#52187D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#52187D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52187D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52187D#FFFFFF#000000##FFFFFF
##52187D1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#4A324A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #52187d;
/* rgb */ color: rgb(82, 24, 125);
/* oklch */ color: oklch(36.0% 0.159 305.6);
Tailwind
colors: {
  custom: {
    50: '#875ca3',
    500: '#52187d',
    950: '#000000',
  },
}
SCSS
$custom: #52187d;
$custom-light: #875ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#52187d",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 125
  },
  "hsl": {
    "h": 274.455,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36015,
    "c": 0.15856,
    "h": 305.6
  },
  "luminance": 0.03928
}

Semantic roles & 50–950 ramp

primary
#52187D
secondary
#70B23F
accent
#EB3D87
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52187D

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

Preview Lab → · Contrast checker → · Palette generator →

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