#512042#512042

#512042 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 32.8% C 0.087 H 340.8°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#512042
RGBrgb(81, 32, 66)
HSLhsl(318, 43%, 22%)
HSVhsv(318, 60%, 32%)
CMYKcmyk(0%, 60.5%, 18.5%, 68.2%)
CIE-LABlab(20.74, 27.66, -10.63)
CIE-LCHlch(20.74, 29.63, 338.97°)
OKLaboklab(32.8% 0.0819 -0.0285)
OKLCHoklch(32.8% 0.087 340.8)
XYZxyz(4.8933, 3.1761, 5.5085)
Luminance0.0318 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512042 #20512F
analogous
#482051 #512042 #51202A
triadic
#512042 #425120 #204251
tetradic
#512042 #514820 #20512F #202A51
square
#512042 #514820 #20512F #202A51
split-complementary
#512042 #2A5120 #205148
monochromatic
#160912 #250F1E #512042 #7D3166 #A94389

Accessibility & contrast

On white

12.84
#512042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#512042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512042
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512042#FFFFFF#000000##FFFFFF
##5120421.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232D43
Deuteranopia (green-blind)
#313541
Tritanopia (blue-blind)
#56212E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #512042;
/* rgb */ color: rgb(81, 32, 66);
/* oklch */ color: oklch(32.8% 0.087 340.8);
Tailwind
colors: {
  custom: {
    50: '#845e76',
    500: '#512042',
    950: '#000000',
  },
}
SCSS
$custom: #512042;
$custom-light: #845e76;
$custom-dark: #000000;
JSON
{
  "hex": "#512042",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 66
  },
  "hsl": {
    "h": 318.367,
    "s": 43.363,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32797,
    "c": 0.08671,
    "h": 340.8
  },
  "luminance": 0.03176
}

Semantic roles & 50–950 ramp

primary
#512042
secondary
#47855A
accent
#D37B55
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #512042

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

Preview Lab → · Contrast checker → · Palette generator →

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