#512243#512243

#512243 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.2% C 0.084 H 340.2°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#512243
RGBrgb(81, 34, 67)
HSLhsl(318, 41%, 23%)
HSVhsv(318, 58%, 32%)
CMYKcmyk(0%, 58%, 17.3%, 68.2%)
CIE-LABlab(21.20, 26.72, -10.60)
CIE-LCHlch(21.20, 28.75, 338.36°)
OKLaboklab(33.16% 0.0788 -0.0284)
OKLCHoklch(33.16% 0.084 340.2)
XYZxyz(4.9786, 3.2990, 5.6837)
Luminance0.0330 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512243 #225130
analogous
#472251 #512243 #51222C
triadic
#512243 #435122 #224351
tetradic
#512243 #514722 #225130 #222C51
square
#512243 #514722 #225130 #222C51
split-complementary
#512243 #2C5122 #225147
monochromatic
#160912 #26101F #512243 #7C3467 #A7468A

Accessibility & contrast

On white

12.65
#512243 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#512243 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512243
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512243#FFFFFF#000000##FFFFFF
##5122431.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242E44
Deuteranopia (green-blind)
#313642
Tritanopia (blue-blind)
#56232F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #512243;
/* rgb */ color: rgb(81, 34, 67);
/* oklch */ color: oklch(33.2% 0.084 340.2);
Tailwind
colors: {
  custom: {
    50: '#835f77',
    500: '#512243',
    950: '#000000',
  },
}
SCSS
$custom: #512243;
$custom-light: #835f77;
$custom-dark: #000000;
JSON
{
  "hex": "#512243",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 67
  },
  "hsl": {
    "h": 317.872,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33159,
    "c": 0.0838,
    "h": 340.2
  },
  "luminance": 0.03299
}

Semantic roles & 50–950 ramp

primary
#512243
secondary
#4A855B
accent
#D17B57
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0508
muted
#7C797B

Preview Lab

Preview with #512243

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

Preview Lab → · Contrast checker → · Palette generator →

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