#52187A#52187A

#52187A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.155 H 306.8°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#52187A
RGBrgb(82, 24, 122)
HSLhsl(276, 67%, 29%)
HSVhsv(276, 80%, 48%)
CMYKcmyk(32.8%, 80.3%, 0%, 52.2%)
CIE-LABlab(23.18, 43.85, -43.76)
CIE-LCHlch(23.18, 61.95, 315.06°)
OKLaboklab(35.76% 0.0932 -0.1245)
OKLCHoklch(35.76% 0.155 306.8)
XYZxyz(7.3184, 3.8523, 18.7666)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52187A #407A18
analogous
#21187A #52187A #7A1871
triadic
#52187A #7A5218 #187A52
tetradic
#52187A #7A2118 #407A18 #18717A
square
#52187A #7A2118 #407A18 #18717A
split-complementary
#52187A #717A18 #187A21
monochromatic
#11051A #300E47 #52187A #7422AD #9535D7

Accessibility & contrast

On white

11.86
#52187A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#52187A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52187A
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52187A#FFFFFF#000000##FFFFFF
##52187A1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003878
Tritanopia (blue-blind)
#4B3149
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #52187a;
/* rgb */ color: rgb(82, 24, 122);
/* oklch */ color: oklch(35.8% 0.155 306.8);
Tailwind
colors: {
  custom: {
    50: '#875ca1',
    500: '#52187a',
    950: '#000000',
  },
}
SCSS
$custom: #52187a;
$custom-light: #875ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#52187a",
  "rgb": {
    "r": 82,
    "g": 24,
    "b": 122
  },
  "hsl": {
    "h": 275.51,
    "s": 67.123,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35757,
    "c": 0.15548,
    "h": 306.8
  },
  "luminance": 0.03852
}

Semantic roles & 50–950 ramp

primary
#52187A
secondary
#6DAF3F
accent
#EA3E84
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52187A

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

Preview Lab → · Contrast checker → · Palette generator →

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