#512249#512249

#512249 is a dark, moderate pink. Relative luminance 0.034; OKLCH L 33.5% C 0.089 H 334.3°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#512249
RGBrgb(81, 34, 73)
HSLhsl(310, 41%, 23%)
HSVhsv(310, 58%, 32%)
CMYKcmyk(0%, 58%, 9.9%, 68.2%)
CIE-LABlab(21.49, 27.84, -14.25)
CIE-LCHlch(21.49, 31.28, 332.89°)
OKLaboklab(33.46% 0.0804 -0.0387)
OKLCHoklch(33.46% 0.089 334.3)
XYZxyz(5.1680, 3.3748, 6.6812)
Luminance0.0337 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512249 #22512A
analogous
#422251 #512249 #512231
triadic
#512249 #495122 #224951
tetradic
#512249 #514222 #22512A #223151
square
#512249 #514222 #22512A #223151
split-complementary
#512249 #315122 #225142
monochromatic
#160913 #261022 #512249 #7C3470 #A74697

Accessibility & contrast

On white

12.54
#512249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#512249 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512249
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512249#FFFFFF#000000##FFFFFF
##5122491.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222F4A
Deuteranopia (green-blind)
#2F3648
Tritanopia (blue-blind)
#552532
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #512249;
/* rgb */ color: rgb(81, 34, 73);
/* oklch */ color: oklch(33.5% 0.089 334.3);
Tailwind
colors: {
  custom: {
    50: '#835f7c',
    500: '#512249',
    950: '#000000',
  },
}
SCSS
$custom: #512249;
$custom-light: #835f7c;
$custom-dark: #000000;
JSON
{
  "hex": "#512249",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 73
  },
  "hsl": {
    "h": 310.213,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33461,
    "c": 0.0892,
    "h": 334.3
  },
  "luminance": 0.03374
}

Semantic roles & 50–950 ramp

primary
#512249
secondary
#4A8554
accent
#D16C57
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0509
muted
#7C797B

Preview Lab

Preview with #512249

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

Preview Lab → · Contrast checker → · Palette generator →

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