#52146A#52146A

#52146A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.144 H 314.3°. Best body text is #FFFFFF at 12.60:1 contrast (WCAG AA passes).

Color values

HEX#52146A
RGBrgb(82, 20, 106)
HSLhsl(283, 68%, 25%)
HSVhsv(283, 81%, 42%)
CMYKcmyk(22.6%, 81.1%, 0%, 58.4%)
CIE-LABlab(21.34, 41.74, -36.43)
CIE-LCHlch(21.34, 55.40, 318.88°)
OKLaboklab(34.06% 0.1004 -0.1029)
OKLCHoklch(34.06% 0.144 314.3)
XYZxyz(6.3309, 3.3350, 13.9431)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52146A #2C6A14
analogous
#27146A #52146A #6A1457
triadic
#52146A #6A5214 #146A52
tetradic
#52146A #6A2714 #2C6A14 #14576A
square
#52146A #6A2714 #2C6A14 #14576A
split-complementary
#52146A #576A14 #146A27
monochromatic
#14051A #2A0A37 #52146A #7A1E9D #A227D1

Accessibility & contrast

On white

12.60
#52146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#52146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52146A
12.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52146A#FFFFFF#000000##FFFFFF
##52146A1.0012.601.6712.60
#FFFFFF12.601.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#0D3568
Tritanopia (blue-blind)
#50283F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52146a;
/* rgb */ color: rgb(82, 20, 106);
/* oklch */ color: oklch(34.1% 0.144 314.3);
Tailwind
colors: {
  custom: {
    50: '#865a95',
    500: '#52146a',
    950: '#000000',
  },
}
SCSS
$custom: #52146a;
$custom-light: #865a95;
$custom-dark: #000000;
JSON
{
  "hex": "#52146a",
  "rgb": {
    "r": 82,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 283.256,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34058,
    "c": 0.14378,
    "h": 314.3
  },
  "luminance": 0.03335
}

Semantic roles & 50–950 ramp

primary
#52146A
secondary
#56A139
accent
#EB3D6D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52146A

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

Preview Lab → · Contrast checker → · Palette generator →

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