#511138#511138

#511138 is a dark, moderate pink. Relative luminance 0.024; OKLCH L 30.4% C 0.104 H 347.7°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#511138
RGBrgb(81, 17, 56)
HSLhsl(323, 65%, 19%)
HSVhsv(323, 79%, 32%)
CMYKcmyk(0%, 79%, 30.9%, 68.2%)
CIE-LABlab(17.63, 33.32, -8.42)
CIE-LCHlch(17.63, 34.37, 345.82°)
OKLaboklab(30.36% 0.1014 -0.0222)
OKLCHoklch(30.36% 0.104 347.7)
XYZxyz(4.3078, 2.4362, 3.9840)
Luminance0.0244 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511138 #11512A
analogous
#4A1151 #511138 #511118
triadic
#511138 #385111 #113851
tetradic
#511138 #514A11 #11512A #111851
square
#511138 #514A11 #11512A #111851
split-complementary
#511138 #185111 #11514A
monochromatic
#190511 #1E0615 #511138 #841C5B #B6267E

Accessibility & contrast

On white

14.12
#511138 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#511138 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511138
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511138#FFFFFF#000000##FFFFFF
##5111381.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2439
Deuteranopia (green-blind)
#2D2F37
Tritanopia (blue-blind)
#570F22
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #511138;
/* rgb */ color: rgb(81, 17, 56);
/* oklch */ color: oklch(30.4% 0.104 347.7);
Tailwind
colors: {
  custom: {
    50: '#85566e',
    500: '#511138',
    950: '#000000',
  },
}
SCSS
$custom: #511138;
$custom-light: #85566e;
$custom-dark: #000000;
JSON
{
  "hex": "#511138",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 56
  },
  "hsl": {
    "h": 323.438,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.30362,
    "c": 0.10376,
    "h": 347.7
  },
  "luminance": 0.02436
}

Semantic roles & 50–950 ramp

primary
#511138
secondary
#348A55
accent
#E88140
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0B0307
muted
#7C787A

Preview Lab

Preview with #511138

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

Preview Lab → · Contrast checker → · Palette generator →

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