#52156E#52156E

#52156E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.147 H 312.3°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#52156E
RGBrgb(82, 21, 110)
HSLhsl(281, 68%, 26%)
HSVhsv(281, 81%, 43%)
CMYKcmyk(25.5%, 80.9%, 0%, 56.9%)
CIE-LABlab(21.79, 42.25, -38.31)
CIE-LCHlch(21.79, 57.03, 317.80°)
OKLaboklab(34.47% 0.0987 -0.1084)
OKLCHoklch(34.47% 0.147 312.3)
XYZxyz(6.5618, 3.4561, 15.0703)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52156E #316E15
analogous
#26156E #52156E #6E155D
triadic
#52156E #6E5215 #156E52
tetradic
#52156E #6E2615 #316E15 #155D6E
square
#52156E #6E2615 #316E15 #155D6E
split-complementary
#52156E #5D6E15 #156E26
monochromatic
#13051A #2C0B3B #52156E #781FA1 #9F29D5

Accessibility & contrast

On white

12.42
#52156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#52156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52156E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52156E#FFFFFF#000000##FFFFFF
##52156E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#06356C
Tritanopia (blue-blind)
#4F2A41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #52156e;
/* rgb */ color: rgb(82, 21, 110);
/* oklch */ color: oklch(34.5% 0.147 312.3);
Tailwind
colors: {
  custom: {
    50: '#865a98',
    500: '#52156e',
    950: '#000000',
  },
}
SCSS
$custom: #52156e;
$custom-light: #865a98;
$custom-dark: #000000;
JSON
{
  "hex": "#52156e",
  "rgb": {
    "r": 82,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 281.124,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34472,
    "c": 0.14661,
    "h": 312.3
  },
  "luminance": 0.03456
}

Semantic roles & 50–950 ramp

primary
#52156E
secondary
#5CA43A
accent
#EB3D74
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #52156E

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

Preview Lab → · Contrast checker → · Palette generator →

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