#512238#512238

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

Color values

HEX#512238
RGBrgb(81, 34, 56)
HSLhsl(332, 41%, 23%)
HSVhsv(332, 58%, 32%)
CMYKcmyk(0%, 58%, 30.9%, 68.2%)
CIE-LABlab(20.75, 24.86, -3.72)
CIE-LCHlch(20.75, 25.13, 351.49°)
OKLaboklab(32.67% 0.0752 -0.0095)
OKLCHoklch(32.67% 0.076 352.8)
XYZxyz(4.6794, 3.1793, 4.1078)
Luminance0.0318 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512238 #22513B
analogous
#512250 #512238 #512322
triadic
#512238 #385122 #223851
tetradic
#512238 #505122 #22513B #232251
square
#512238 #505122 #22513B #232251
split-complementary
#512238 #225123 #225051
monochromatic
#16090F #26101A #512238 #7C3456 #A74674

Accessibility & contrast

On white

12.84
#512238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512238
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512238#FFFFFF#000000##FFFFFF
##5122381.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282D39
Deuteranopia (green-blind)
#353537
Tritanopia (blue-blind)
#57202A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #512238;
/* rgb */ color: rgb(81, 34, 56);
/* oklch */ color: oklch(32.7% 0.076 352.8);
Tailwind
colors: {
  custom: {
    50: '#845f6e',
    500: '#512238',
    950: '#000000',
  },
}
SCSS
$custom: #512238;
$custom-light: #845f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#512238",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 56
  },
  "hsl": {
    "h": 331.915,
    "s": 40.87,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32669,
    "c": 0.07583,
    "h": 352.8
  },
  "luminance": 0.03179
}

Semantic roles & 50–950 ramp

primary
#512238
secondary
#4A8569
accent
#D19857
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0507
muted
#7C797A

Preview Lab

Preview with #512238

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

Preview Lab → · Contrast checker → · Palette generator →

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