#51212E#51212E

#51212E is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.1% C 0.073 H 5.1°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#51212E
RGBrgb(81, 33, 46)
HSLhsl(344, 42%, 22%)
HSVhsv(344, 59%, 32%)
CMYKcmyk(0%, 59.3%, 43.2%, 68.2%)
CIE-LABlab(20.18, 23.99, 2.41)
CIE-LCHlch(20.18, 24.11, 5.73°)
OKLaboklab(32.13% 0.073 0.0065)
OKLCHoklch(32.13% 0.073 5.1)
XYZxyz(4.4306, 3.0348, 2.9367)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51212E #215144
analogous
#512146 #51212E #512C21
triadic
#51212E #2E5121 #212E51
tetradic
#51212E #465121 #215144 #2C2151
square
#51212E #465121 #215144 #2C2151
split-complementary
#51212E #21512C #214651
monochromatic
#16090C #260F15 #51212E #7C3347 #A8445F

Accessibility & contrast

On white

13.07
#51212E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#51212E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51212E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51212E#FFFFFF#000000##FFFFFF
##51212E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A2B2E
Deuteranopia (green-blind)
#36342D
Tritanopia (blue-blind)
#581C26
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #51212e;
/* rgb */ color: rgb(81, 33, 46);
/* oklch */ color: oklch(32.1% 0.073 5.1);
Tailwind
colors: {
  custom: {
    50: '#845e66',
    500: '#51212e',
    950: '#000000',
  },
}
SCSS
$custom: #51212e;
$custom-light: #845e66;
$custom-dark: #000000;
JSON
{
  "hex": "#51212e",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 46
  },
  "hsl": {
    "h": 343.75,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32132,
    "c": 0.07326,
    "h": 5.1
  },
  "luminance": 0.03034
}

Semantic roles & 50–950 ramp

primary
#51212E
secondary
#498575
accent
#D2B056
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0406
muted
#7C797A

Preview Lab

Preview with #51212E

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

Preview Lab → · Contrast checker → · Palette generator →

#51212E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva