#512134#512134

#512134 is a dark, moderate pink. Relative luminance 0.031; OKLCH L 32.3% C 0.076 H 357.3°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).

Color values

HEX#512134
RGBrgb(81, 33, 52)
HSLhsl(336, 42%, 22%)
HSVhsv(336, 59%, 32%)
CMYKcmyk(0%, 59.3%, 35.8%, 68.2%)
CIE-LABlab(20.38, 24.82, -1.48)
CIE-LCHlch(20.38, 24.87, 356.58°)
OKLaboklab(32.35% 0.0755 -0.0036)
OKLCHoklch(32.35% 0.076 357.3)
XYZxyz(4.5572, 3.0854, 3.6037)
Luminance0.0308 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512134 #21513E
analogous
#51214C #512134 #512621
triadic
#512134 #345121 #213451
tetradic
#512134 #4C5121 #21513E #262151
square
#512134 #4C5121 #21513E #262151
split-complementary
#512134 #215126 #214C51
monochromatic
#16090E #260F18 #512134 #7C3350 #A8446C

Accessibility & contrast

On white

12.99
#512134 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#512134 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512134
12.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512134#FFFFFF#000000##FFFFFF
##5121341.0012.991.6212.99
#FFFFFF12.991.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282C35
Deuteranopia (green-blind)
#353433
Tritanopia (blue-blind)
#571E28
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #512134;
/* rgb */ color: rgb(81, 33, 52);
/* oklch */ color: oklch(32.3% 0.076 357.3);
Tailwind
colors: {
  custom: {
    50: '#845e6b',
    500: '#512134',
    950: '#000000',
  },
}
SCSS
$custom: #512134;
$custom-light: #845e6b;
$custom-dark: #000000;
JSON
{
  "hex": "#512134",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 52
  },
  "hsl": {
    "h": 336.25,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32348,
    "c": 0.07554,
    "h": 357.3
  },
  "luminance": 0.03085
}

Semantic roles & 50–950 ramp

primary
#512134
secondary
#49856D
accent
#D2A156
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #512134

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

Preview Lab → · Contrast checker → · Palette generator →

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