#52124D#52124D

#52124D is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.8% C 0.119 H 331.4°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#52124D
RGBrgb(82, 18, 77)
HSLhsl(305, 64%, 20%)
HSVhsv(305, 78%, 32%)
CMYKcmyk(0%, 78%, 6.1%, 67.8%)
CIE-LABlab(19.07, 36.64, -20.74)
CIE-LCHlch(19.07, 42.10, 330.48°)
OKLaboklab(31.8% 0.1047 -0.0571)
OKLCHoklch(31.8% 0.119 331.4)
XYZxyz(5.0355, 2.7627, 7.2878)
Luminance0.0276 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52124D #125217
analogous
#371252 #52124D #52122D
triadic
#52124D #4D5212 #124D52
tetradic
#52124D #523712 #125217 #122D52
square
#52124D #523712 #125217 #122D52
split-complementary
#52124D #2D5212 #125237
monochromatic
#190618 #20071E #52124D #841D7C #B628AB

Accessibility & contrast

On white

13.53
#52124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#52124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52124D
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52124D#FFFFFF#000000##FFFFFF
##52124D1.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D294F
Deuteranopia (green-blind)
#26314B
Tritanopia (blue-blind)
#56192E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #52124d;
/* rgb */ color: rgb(82, 18, 77);
/* oklch */ color: oklch(31.8% 0.119 331.4);
Tailwind
colors: {
  custom: {
    50: '#85577f',
    500: '#52124d',
    950: '#000000',
  },
}
SCSS
$custom: #52124d;
$custom-light: #85577f;
$custom-dark: #000000;
JSON
{
  "hex": "#52124d",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 304.688,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31801,
    "c": 0.11921,
    "h": 331.4
  },
  "luminance": 0.02762
}

Semantic roles & 50–950 ramp

primary
#52124D
secondary
#358B3C
accent
#E74E41
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #52124D

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

Preview Lab → · Contrast checker → · Palette generator →

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