#52147A#52147A

#52147A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.160 H 307.3°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#52147A
RGBrgb(82, 20, 122)
HSLhsl(276, 72%, 28%)
HSVhsv(276, 84%, 48%)
CMYKcmyk(32.8%, 83.6%, 0%, 52.2%)
CIE-LABlab(22.65, 45.37, -44.61)
CIE-LCHlch(22.65, 63.63, 315.48°)
OKLaboklab(35.39% 0.0966 -0.1269)
OKLCHoklch(35.39% 0.16 307.3)
XYZxyz(7.2419, 3.6994, 18.7411)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52147A #3C7A14
analogous
#1F147A #52147A #7A146F
triadic
#52147A #7A5214 #147A52
tetradic
#52147A #7A1F14 #3C7A14 #146F7A
square
#52147A #7A1F14 #3C7A14 #146F7A
split-complementary
#52147A #6F7A14 #147A1F
monochromatic
#12041A #2F0B45 #52147A #751DAF #972CDC

Accessibility & contrast

On white

12.07
#52147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#52147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52147A
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52147A#FFFFFF#000000##FFFFFF
##52147A1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#4B2F48
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52147a;
/* rgb */ color: rgb(82, 20, 122);
/* oklch */ color: oklch(35.4% 0.160 307.3);
Tailwind
colors: {
  custom: {
    50: '#875ba1',
    500: '#52147a',
    950: '#000000',
  },
}
SCSS
$custom: #52147a;
$custom-light: #875ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#52147a",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 276.471,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3539,
    "c": 0.15952,
    "h": 307.3
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#52147A
secondary
#68B03A
accent
#EF3980
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52147A

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

Preview Lab → · Contrast checker → · Palette generator →

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