#512147#512147

#512147 is a dark, moderate pink. Relative luminance 0.033; OKLCH L 33.2% C 0.089 H 336.1°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#512147
RGBrgb(81, 33, 71)
HSLhsl(313, 42%, 22%)
HSVhsv(313, 59%, 32%)
CMYKcmyk(0%, 59.3%, 12.3%, 68.2%)
CIE-LABlab(21.18, 28.02, -13.37)
CIE-LCHlch(21.18, 31.05, 334.49°)
OKLaboklab(33.2% 0.0815 -0.0362)
OKLCHoklch(33.2% 0.089 336.1)
XYZxyz(5.0746, 3.2923, 6.3282)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512147 #21512B
analogous
#432151 #512147 #51212F
triadic
#512147 #475121 #214751
tetradic
#512147 #514321 #21512B #212F51
square
#512147 #514321 #21512B #212F51
split-complementary
#512147 #2F5121 #215143
monochromatic
#160913 #260F21 #512147 #7C336D #A84493

Accessibility & contrast

On white

12.66
#512147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#512147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512147
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512147#FFFFFF#000000##FFFFFF
##5121471.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222E48
Deuteranopia (green-blind)
#2F3646
Tritanopia (blue-blind)
#552330
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #512147;
/* rgb */ color: rgb(81, 33, 71);
/* oklch */ color: oklch(33.2% 0.089 336.1);
Tailwind
colors: {
  custom: {
    50: '#835f7a',
    500: '#512147',
    950: '#000000',
  },
}
SCSS
$custom: #512147;
$custom-light: #835f7a;
$custom-dark: #000000;
JSON
{
  "hex": "#512147",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 312.5,
    "s": 42.105,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33201,
    "c": 0.08921,
    "h": 336.1
  },
  "luminance": 0.03292
}

Semantic roles & 50–950 ramp

primary
#512147
secondary
#498555
accent
#D27056
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0509
muted
#7C797B

Preview Lab

Preview with #512147

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

Preview Lab → · Contrast checker → · Palette generator →

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