#512235#512235

#512235 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 32.6% C 0.074 H 356.6°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#512235
RGBrgb(81, 34, 53)
HSLhsl(336, 41%, 23%)
HSVhsv(336, 58%, 32%)
CMYKcmyk(0%, 58%, 34.6%, 68.2%)
CIE-LABlab(20.64, 24.40, -1.80)
CIE-LCHlch(20.64, 24.46, 355.77°)
OKLaboklab(32.55% 0.0741 -0.0044)
OKLCHoklch(32.55% 0.074 356.6)
XYZxyz(4.6082, 3.1509, 3.7330)
Luminance0.0315 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512235 #22513E
analogous
#51224C #512235 #512722
triadic
#512235 #355122 #223551
tetradic
#512235 #4C5122 #22513E #272251
square
#512235 #4C5122 #22513E #272251
split-complementary
#512235 #225127 #224C51
monochromatic
#16090E #261019 #512235 #7C3451 #A7466D

Accessibility & contrast

On white

12.88
#512235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#512235 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512235
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512235#FFFFFF#000000##FFFFFF
##5122351.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#292C36
Deuteranopia (green-blind)
#353534
Tritanopia (blue-blind)
#571F29
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #512235;
/* rgb */ color: rgb(81, 34, 53);
/* oklch */ color: oklch(32.6% 0.074 356.6);
Tailwind
colors: {
  custom: {
    50: '#845f6c',
    500: '#512235',
    950: '#000000',
  },
}
SCSS
$custom: #512235;
$custom-light: #845f6c;
$custom-dark: #000000;
JSON
{
  "hex": "#512235",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 53
  },
  "hsl": {
    "h": 335.745,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32551,
    "c": 0.07421,
    "h": 356.6
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#512235
secondary
#4A856D
accent
#D1A057
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0506
muted
#7C797A

Preview Lab

Preview with #512235

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

Preview Lab → · Contrast checker → · Palette generator →

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