#512840#512840

#512840 is a dark, moderate pink. Relative luminance 0.036; OKLCH L 34.0% C 0.070 H 345.3°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#512840
RGBrgb(81, 40, 64)
HSLhsl(325, 34%, 24%)
HSVhsv(325, 51%, 32%)
CMYKcmyk(0%, 50.6%, 21%, 68.2%)
CIE-LABlab(22.43, 22.65, -6.69)
CIE-LCHlch(22.43, 23.61, 343.55°)
OKLaboklab(34.04% 0.0674 -0.0176)
OKLCHoklch(34.04% 0.07 345.3)
XYZxyz(5.0776, 3.6374, 5.2842)
Luminance0.0364 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512840 #285139
analogous
#4D2851 #512840 #51282B
triadic
#512840 #405128 #284051
tetradic
#512840 #514D28 #285139 #282B51
square
#512840 #514D28 #285139 #282B51
split-complementary
#512840 #2B5128 #28514D
monochromatic
#140A10 #281420 #512840 #7A3C60 #A35081

Accessibility & contrast

On white

12.16
#512840 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#512840 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512840
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512840#FFFFFF#000000##FFFFFF
##5128401.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3141
Deuteranopia (green-blind)
#36383F
Tritanopia (blue-blind)
#562831
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #512840;
/* rgb */ color: rgb(81, 40, 64);
/* oklch */ color: oklch(34.0% 0.070 345.3);
Tailwind
colors: {
  custom: {
    50: '#836374',
    500: '#512840',
    950: '#000000',
  },
}
SCSS
$custom: #512840;
$custom-light: #836374;
$custom-dark: #000000;
JSON
{
  "hex": "#512840",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 64
  },
  "hsl": {
    "h": 324.878,
    "s": 33.884,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34036,
    "c": 0.06965,
    "h": 345.3
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#512840
secondary
#518466
accent
#CA8B5E
background
#F8F5F7
surface
#EFEAED
border
#CAC6C8
text
#0B0508
muted
#7C797B

Preview Lab

Preview with #512840

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

Preview Lab → · Contrast checker → · Palette generator →

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