#52124B#52124B

#52124B is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.7% C 0.118 H 332.8°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#52124B
RGBrgb(82, 18, 75)
HSLhsl(307, 64%, 20%)
HSVhsv(307, 78%, 32%)
CMYKcmyk(0%, 78%, 8.5%, 67.8%)
CIE-LABlab(18.95, 36.28, -19.56)
CIE-LCHlch(18.95, 41.22, 331.66°)
OKLaboklab(31.68% 0.1045 -0.0537)
OKLCHoklch(31.68% 0.118 332.8)
XYZxyz(4.9660, 2.7349, 6.9216)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52124B #125219
analogous
#391252 #52124B #52122B
triadic
#52124B #4B5212 #124B52
tetradic
#52124B #523912 #125219 #122B52
square
#52124B #523912 #125219 #122B52
split-complementary
#52124B #2B5212 #125239
monochromatic
#190617 #20071D #52124B #841D79 #B628A7

Accessibility & contrast

On white

13.58
#52124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #52124B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52124B#FFFFFF#000000##FFFFFF
##52124B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F284D
Deuteranopia (green-blind)
#273149
Tritanopia (blue-blind)
#56182D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #52124b;
/* rgb */ color: rgb(82, 18, 75);
/* oklch */ color: oklch(31.7% 0.118 332.8);
Tailwind
colors: {
  custom: {
    50: '#85577d',
    500: '#52124b',
    950: '#000000',
  },
}
SCSS
$custom: #52124b;
$custom-light: #85577d;
$custom-dark: #000000;
JSON
{
  "hex": "#52124b",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 306.563,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31678,
    "c": 0.11751,
    "h": 332.8
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#52124B
secondary
#358B3E
accent
#E75341
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #52124B

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

Preview Lab → · Contrast checker → · Palette generator →

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