#512142#512142

#512142 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.0% C 0.085 H 341.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#512142
RGBrgb(81, 33, 66)
HSLhsl(319, 42%, 22%)
HSVhsv(319, 59%, 32%)
CMYKcmyk(0%, 59.3%, 18.5%, 68.2%)
CIE-LABlab(20.95, 27.10, -10.31)
CIE-LCHlch(20.95, 29.00, 339.17°)
OKLaboklab(32.95% 0.0802 -0.0276)
OKLCHoklch(32.95% 0.085 341)
XYZxyz(4.9207, 3.2308, 5.5176)
Luminance0.0323 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512142 #215130
analogous
#482151 #512142 #51212A
triadic
#512142 #425121 #214251
tetradic
#512142 #514821 #215130 #212A51
square
#512142 #514821 #215130 #212A51
split-complementary
#512142 #2A5121 #215148
monochromatic
#160912 #260F1F #512142 #7C3365 #A84489

Accessibility & contrast

On white

12.76
#512142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#512142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512142
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512142#FFFFFF#000000##FFFFFF
##5121421.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242E43
Deuteranopia (green-blind)
#313541
Tritanopia (blue-blind)
#56222E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #512142;
/* rgb */ color: rgb(81, 33, 66);
/* oklch */ color: oklch(33.0% 0.085 341.0);
Tailwind
colors: {
  custom: {
    50: '#835f76',
    500: '#512142',
    950: '#000000',
  },
}
SCSS
$custom: #512142;
$custom-light: #835f76;
$custom-dark: #000000;
JSON
{
  "hex": "#512142",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 318.75,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32952,
    "c": 0.08485,
    "h": 341
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#512142
secondary
#49855C
accent
#D27D56
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0508
muted
#7C797B

Preview Lab

Preview with #512142

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

Preview Lab → · Contrast checker → · Palette generator →

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