#512239#512239

#512239 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 32.7% C 0.076 H 351.5°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#512239
RGBrgb(81, 34, 57)
HSLhsl(331, 41%, 23%)
HSVhsv(331, 58%, 32%)
CMYKcmyk(0%, 58%, 29.6%, 68.2%)
CIE-LABlab(20.79, 25.01, -4.35)
CIE-LCHlch(20.79, 25.39, 350.13°)
OKLaboklab(32.71% 0.0756 -0.0112)
OKLCHoklch(32.71% 0.076 351.5)
XYZxyz(4.7041, 3.1892, 4.2379)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512239 #22513A
analogous
#512251 #512239 #512222
triadic
#512239 #395122 #223951
tetradic
#512239 #515122 #22513A #222251
square
#512239 #515122 #22513A #222251
split-complementary
#512239 #225122 #225151
monochromatic
#16090F #26101B #512239 #7C3457 #A74676

Accessibility & contrast

On white

12.82
#512239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#512239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512239
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512239#FFFFFF#000000##FFFFFF
##5122391.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282D3A
Deuteranopia (green-blind)
#343538
Tritanopia (blue-blind)
#57202B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #512239;
/* rgb */ color: rgb(81, 34, 57);
/* oklch */ color: oklch(32.7% 0.076 351.5);
Tailwind
colors: {
  custom: {
    50: '#845f6f',
    500: '#512239',
    950: '#000000',
  },
}
SCSS
$custom: #512239;
$custom-light: #845f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#512239",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 57
  },
  "hsl": {
    "h": 330.638,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3271,
    "c": 0.07643,
    "h": 351.5
  },
  "luminance": 0.03189
}

Semantic roles & 50–950 ramp

primary
#512239
secondary
#4A8568
accent
#D19557
background
#F8F5F6
surface
#EFE9EC
border
#CAC5C7
text
#0B0507
muted
#7C797A

Preview Lab

Preview with #512239

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

Preview Lab → · Contrast checker → · Palette generator →

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