#52147B#52147B

#52147B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.161 H 306.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#52147B
RGBrgb(82, 20, 123)
HSLhsl(276, 72%, 28%)
HSVhsv(276, 84%, 48%)
CMYKcmyk(33.3%, 83.7%, 0%, 51.8%)
CIE-LABlab(22.74, 45.60, -45.11)
CIE-LCHlch(22.74, 64.14, 315.31°)
OKLaboklab(35.48% 0.0963 -0.1284)
OKLCHoklch(35.48% 0.161 306.9)
XYZxyz(7.3042, 3.7243, 19.0691)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52147B #3D7B14
analogous
#1F147B #52147B #7B1470
triadic
#52147B #7B5214 #147B52
tetradic
#52147B #7B1F14 #3D7B14 #14707B
square
#52147B #7B1F14 #3D7B14 #14707B
split-complementary
#52147B #707B14 #147B1F
monochromatic
#12041A #2F0B46 #52147B #751DB0 #972DDD

Accessibility & contrast

On white

12.04
#52147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52147B
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52147B#FFFFFF#000000##FFFFFF
##52147B1.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#4B3048
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #52147b;
/* rgb */ color: rgb(82, 20, 123);
/* oklch */ color: oklch(35.5% 0.161 306.9);
Tailwind
colors: {
  custom: {
    50: '#875ba2',
    500: '#52147b',
    950: '#000000',
  },
}
SCSS
$custom: #52147b;
$custom-light: #875ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#52147b",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 276.117,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35477,
    "c": 0.16052,
    "h": 306.9
  },
  "luminance": 0.03724
}

Semantic roles & 50–950 ramp

primary
#52147B
secondary
#69B13A
accent
#EF3981
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #52147B

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

Preview Lab → · Contrast checker → · Palette generator →

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