#512052#512052

#512052 is a dark, moderate purple. Relative luminance 0.034; OKLCH L 33.7% C 0.102 H 326.8°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).

Color values

HEX#512052
RGBrgb(81, 32, 82)
HSLhsl(299, 44%, 22%)
HSVhsv(299, 61%, 32%)
CMYKcmyk(1.2%, 61%, 0%, 67.8%)
CIE-LABlab(21.55, 30.75, -20.23)
CIE-LCHlch(21.55, 36.81, 326.66°)
OKLaboklab(33.66% 0.0851 -0.0558)
OKLCHoklch(33.66% 0.102 326.8)
XYZxyz(5.4327, 3.3919, 8.3495)
Luminance0.0339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512052 #215220
analogous
#382052 #512052 #52203A
triadic
#512052 #525120 #205251
tetradic
#512052 #523820 #215220 #203A52
square
#512052 #523820 #215220 #203A52
split-complementary
#512052 #3A5220 #205238
monochromatic
#160916 #260F26 #512052 #7C317E #A842AA

Accessibility & contrast

On white

12.51
#512052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#512052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512052
12.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512052#FFFFFF#000000##FFFFFF
##5120521.0012.511.6812.51
#FFFFFF12.511.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3054
Deuteranopia (green-blind)
#2A3651
Tritanopia (blue-blind)
#532635
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #512052;
/* rgb */ color: rgb(81, 32, 82);
/* oklch */ color: oklch(33.7% 0.102 326.8);
Tailwind
colors: {
  custom: {
    50: '#845f83',
    500: '#512052',
    950: '#000000',
  },
}
SCSS
$custom: #512052;
$custom-light: #845f83;
$custom-dark: #000000;
JSON
{
  "hex": "#512052",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 82
  },
  "hsl": {
    "h": 298.8,
    "s": 43.86,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33662,
    "c": 0.10175,
    "h": 326.8
  },
  "luminance": 0.03392
}

Semantic roles & 50–950 ramp

primary
#512052
secondary
#498647
accent
#D45457
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #512052

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

Preview Lab → · Contrast checker → · Palette generator →

#512052 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva