#52124A#52124A

#52124A is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.6% C 0.117 H 333.5°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#52124A
RGBrgb(82, 18, 74)
HSLhsl(308, 64%, 20%)
HSVhsv(308, 78%, 32%)
CMYKcmyk(0%, 78%, 9.8%, 67.8%)
CIE-LABlab(18.89, 36.10, -18.97)
CIE-LCHlch(18.89, 40.78, 332.28°)
OKLaboklab(31.62% 0.1045 -0.052)
OKLCHoklch(31.62% 0.117 333.5)
XYZxyz(4.9320, 2.7213, 6.7427)
Luminance0.0272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52124A #12521A
analogous
#3A1252 #52124A #52122A
triadic
#52124A #4A5212 #124A52
tetradic
#52124A #523A12 #12521A #122A52
square
#52124A #523A12 #12521A #122A52
split-complementary
#52124A #2A5212 #12523A
monochromatic
#190617 #20071D #52124A #841D77 #B628A5

Accessibility & contrast

On white

13.60
#52124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#52124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52124A
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52124A#FFFFFF#000000##FFFFFF
##52124A1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10284C
Deuteranopia (green-blind)
#273148
Tritanopia (blue-blind)
#56182C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #52124a;
/* rgb */ color: rgb(82, 18, 74);
/* oklch */ color: oklch(31.6% 0.117 333.5);
Tailwind
colors: {
  custom: {
    50: '#85577c',
    500: '#52124a',
    950: '#000000',
  },
}
SCSS
$custom: #52124a;
$custom-light: #85577c;
$custom-dark: #000000;
JSON
{
  "hex": "#52124a",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 307.5,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31617,
    "c": 0.11667,
    "h": 333.5
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#52124A
secondary
#358B40
accent
#E75641
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #52124A

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

Preview Lab → · Contrast checker → · Palette generator →

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