#52106E#52106E

#52106E is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.152 H 312.8°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#52106E
RGBrgb(82, 16, 110)
HSLhsl(282, 75%, 25%)
HSVhsv(282, 85%, 43%)
CMYKcmyk(25.5%, 85.5%, 0%, 56.9%)
CIE-LABlab(21.17, 44.03, -39.30)
CIE-LCHlch(21.17, 59.02, 318.24°)
OKLaboklab(34.04% 0.103 -0.1113)
OKLCHoklch(34.04% 0.152 312.8)
XYZxyz(6.4789, 3.2904, 15.0426)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52106E #2C6E10
analogous
#23106E #52106E #6E105B
triadic
#52106E #6E5210 #106E52
tetradic
#52106E #6E2310 #2C6E10 #105B6E
square
#52106E #6E2310 #2C6E10 #105B6E
split-complementary
#52106E #5B6E10 #106E23
monochromatic
#14041B #2A0839 #52106E #7A18A3 #A220D9

Accessibility & contrast

On white

12.67
#52106E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#52106E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52106E
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52106E#FFFFFF#000000##FFFFFF
##52106E1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00346C
Tritanopia (blue-blind)
#4F2840
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #52106e;
/* rgb */ color: rgb(82, 16, 110);
/* oklch */ color: oklch(34.0% 0.152 312.8);
Tailwind
colors: {
  custom: {
    50: '#875898',
    500: '#52106e',
    950: '#000000',
  },
}
SCSS
$custom: #52106e;
$custom-light: #875898;
$custom-dark: #000000;
JSON
{
  "hex": "#52106e",
  "rgb": {
    "r": 82,
    "g": 16,
    "b": 110
  },
  "hsl": {
    "h": 282.128,
    "s": 74.603,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34041,
    "c": 0.15166,
    "h": 312.8
  },
  "luminance": 0.0329
}

Semantic roles & 50–950 ramp

primary
#52106E
secondary
#56A634
accent
#F1376E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52106E

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

Preview Lab → · Contrast checker → · Palette generator →

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