#512C40#512C40

#512C40 is a dark, moderate pink. Relative luminance 0.039; OKLCH L 34.8% C 0.062 H 347.2°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#512C40
RGBrgb(81, 44, 64)
HSLhsl(328, 30%, 25%)
HSVhsv(328, 46%, 32%)
CMYKcmyk(0%, 45.7%, 21%, 68.2%)
CIE-LABlab(23.41, 20.18, -5.22)
CIE-LCHlch(23.41, 20.85, 345.49°)
OKLaboklab(34.77% 0.0601 -0.0137)
OKLCHoklch(34.77% 0.062 347.2)
XYZxyz(5.2195, 3.9212, 5.3314)
Luminance0.0392 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512C40 #2C513D
analogous
#502C51 #512C40 #512C2E
triadic
#512C40 #40512C #2C4051
tetradic
#512C40 #51502C #2C513D #2C2E51
square
#512C40 #51502C #2C513D #2C2E51
split-complementary
#512C40 #2E512C #2C5150
monochromatic
#140B10 #291621 #512C40 #79425F #A0577F

Accessibility & contrast

On white

11.77
#512C40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#512C40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512C40
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512C40#FFFFFF#000000##FFFFFF
##512C401.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F3441
Deuteranopia (green-blind)
#383A3F
Tritanopia (blue-blind)
#562B33
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512c40;
/* rgb */ color: rgb(81, 44, 64);
/* oklch */ color: oklch(34.8% 0.062 347.2);
Tailwind
colors: {
  custom: {
    50: '#836674',
    500: '#512c40',
    950: '#000000',
  },
}
SCSS
$custom: #512c40;
$custom-light: #836674;
$custom-dark: #000000;
JSON
{
  "hex": "#512c40",
  "rgb": {
    "r": 81,
    "g": 44,
    "b": 64
  },
  "hsl": {
    "h": 327.568,
    "s": 29.6,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34771,
    "c": 0.06161,
    "h": 347.2
  },
  "luminance": 0.03921
}

Semantic roles & 50–950 ramp

primary
#512C40
secondary
#56836B
accent
#C69062
background
#F8F6F7
surface
#EFEBED
border
#CAC6C8
text
#0B0608
muted
#7C7A7B

Preview Lab

Preview with #512C40

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

Preview Lab → · Contrast checker → · Palette generator →

#512C40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva