#52124F#52124F

#52124F is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.121 H 330.0°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).

Color values

HEX#52124F
RGBrgb(82, 18, 79)
HSLhsl(303, 64%, 20%)
HSVhsv(303, 78%, 32%)
CMYKcmyk(0%, 78%, 3.7%, 67.8%)
CIE-LABlab(19.19, 37.00, -21.91)
CIE-LCHlch(19.19, 43.00, 329.37°)
OKLaboklab(31.93% 0.1047 -0.0605)
OKLCHoklch(31.93% 0.121 330)
XYZxyz(5.1072, 2.7914, 7.6654)
Luminance0.0279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#52124F #125215
analogous
#351252 #52124F #52122F
triadic
#52124F #4F5212 #124F52
tetradic
#52124F #523512 #125215 #122F52
square
#52124F #523512 #125215 #122F52
split-complementary
#52124F #2F5212 #125235
monochromatic
#190618 #20071F #52124F #841D7F #B628B0

Accessibility & contrast

On white

13.48
#52124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#52124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #52124F
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##52124F#FFFFFF#000000##FFFFFF
##52124F1.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2951
Deuteranopia (green-blind)
#25324D
Tritanopia (blue-blind)
#551A2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #52124f;
/* rgb */ color: rgb(82, 18, 79);
/* oklch */ color: oklch(31.9% 0.121 330.0);
Tailwind
colors: {
  custom: {
    50: '#855780',
    500: '#52124f',
    950: '#000000',
  },
}
SCSS
$custom: #52124f;
$custom-light: #855780;
$custom-dark: #000000;
JSON
{
  "hex": "#52124f",
  "rgb": {
    "r": 82,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 302.813,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31927,
    "c": 0.12094,
    "h": 330
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#52124F
secondary
#358B39
accent
#E74941
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #52124F

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

Preview Lab → · Contrast checker → · Palette generator →

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