#52147C#52147C

#52147C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.162 H 306.5°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#52147C
RGBrgb(82, 20, 124)
HSLhsl(276, 72%, 28%)
HSVhsv(276, 84%, 49%)
CMYKcmyk(33.9%, 83.9%, 0%, 51.4%)
CIE-LABlab(22.83, 45.83, -45.60)
CIE-LCHlch(22.83, 64.65, 315.15°)
OKLaboklab(35.57% 0.096 -0.1298)
OKLCHoklch(35.57% 0.162 306.5)
XYZxyz(7.3671, 3.7495, 19.4005)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52147C #3E7C14
analogous
#1E147C #52147C #7C1472
triadic
#52147C #7C5214 #147C52
tetradic
#52147C #7C1E14 #3E7C14 #14727C
square
#52147C #7C1E14 #3E7C14 #14727C
split-complementary
#52147C #727C14 #147C1E
monochromatic
#11041A #2F0B47 #52147C #751DB1 #962DDD

Accessibility & contrast

On white

12.00
#52147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#52147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52147C
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52147C#FFFFFF#000000##FFFFFF
##52147C1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#4A3049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52147c;
/* rgb */ color: rgb(82, 20, 124);
/* oklch */ color: oklch(35.6% 0.162 306.5);
Tailwind
colors: {
  custom: {
    50: '#885ba3',
    500: '#52147c',
    950: '#000000',
  },
}
SCSS
$custom: #52147c;
$custom-light: #885ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#52147c",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 275.769,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35565,
    "c": 0.1615,
    "h": 306.5
  },
  "luminance": 0.03749
}

Semantic roles & 50–950 ramp

primary
#52147C
secondary
#6AB23A
accent
#EF3982
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52147C

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

Preview Lab → · Contrast checker → · Palette generator →

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