#52106A#52106A

#52106A is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.148 H 314.7°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#52106A
RGBrgb(82, 16, 106)
HSLhsl(284, 74%, 24%)
HSVhsv(284, 85%, 42%)
CMYKcmyk(22.6%, 84.9%, 0%, 58.4%)
CIE-LABlab(20.85, 43.16, -37.23)
CIE-LCHlch(20.85, 56.99, 319.22°)
OKLaboklab(33.71% 0.1039 -0.1052)
OKLCHoklch(33.71% 0.148 314.7)
XYZxyz(6.2660, 3.2053, 13.9215)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52106A #286A10
analogous
#25106A #52106A #6A1055
triadic
#52106A #6A5210 #106A52
tetradic
#52106A #6A2510 #286A10 #10556A
square
#52106A #6A2510 #286A10 #10556A
split-complementary
#52106A #556A10 #106A25
monochromatic
#15041B #290835 #52106A #7B189F #A420D4

Accessibility & contrast

On white

12.80
#52106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#52106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52106A
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52106A#FFFFFF#000000##FFFFFF
##52106A1.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#093468
Tritanopia (blue-blind)
#50263E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #52106a;
/* rgb */ color: rgb(82, 16, 106);
/* oklch */ color: oklch(33.7% 0.148 314.7);
Tailwind
colors: {
  custom: {
    50: '#865895',
    500: '#52106a',
    950: '#000000',
  },
}
SCSS
$custom: #52106a;
$custom-light: #865895;
$custom-dark: #000000;
JSON
{
  "hex": "#52106a",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 284,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.33713,
    "c": 0.14789,
    "h": 314.7
  },
  "luminance": 0.03205
}

Semantic roles & 50–950 ramp

primary
#52106A
secondary
#51A234
accent
#F03769
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #52106A

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

Preview Lab → · Contrast checker → · Palette generator →

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