#512B46#512B46

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

Color values

HEX#512B46
RGBrgb(81, 43, 70)
HSLhsl(317, 31%, 24%)
HSVhsv(317, 47%, 32%)
CMYKcmyk(0%, 46.9%, 13.6%, 68.2%)
CIE-LABlab(23.40, 21.93, -9.28)
CIE-LCHlch(23.40, 23.81, 337.05°)
OKLaboklab(34.85% 0.064 -0.0248)
OKLCHoklch(34.85% 0.069 338.8)
XYZxyz(5.3627, 3.9196, 6.2673)
Luminance0.0392 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512B46 #2B5136
analogous
#492B51 #512B46 #512B33
triadic
#512B46 #46512B #2B4651
tetradic
#512B46 #51492B #2B5136 #2B3351
square
#512B46 #51492B #2B5136 #2B3351
split-complementary
#512B46 #33512B #2B5149
monochromatic
#140B11 #291623 #512B46 #794069 #A1558B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##512B46#FFFFFF#000000##FFFFFF
##512B461.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)
#2C3447
Deuteranopia (green-blind)
#363A45
Tritanopia (blue-blind)
#552C35
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #512b46;
/* rgb */ color: rgb(81, 43, 70);
/* oklch */ color: oklch(34.8% 0.069 338.8);
Tailwind
colors: {
  custom: {
    50: '#836579',
    500: '#512b46',
    950: '#000000',
  },
}
SCSS
$custom: #512b46;
$custom-light: #836579;
$custom-dark: #000000;
JSON
{
  "hex": "#512b46",
  "rgb": {
    "r": 81,
    "g": 43,
    "b": 70
  },
  "hsl": {
    "h": 317.368,
    "s": 30.645,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34846,
    "c": 0.06864,
    "h": 338.8
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#512B46
secondary
#558362
accent
#C77E61
background
#F8F6F7
surface
#EFEBED
border
#CAC6C8
text
#0B0609
muted
#7C7A7B

Preview Lab

Preview with #512B46

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

Preview Lab → · Contrast checker → · Palette generator →

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