#511040#511040

#511040 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.7% C 0.111 H 340.6°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#511040
RGBrgb(81, 16, 64)
HSLhsl(316, 67%, 19%)
HSVhsv(316, 80%, 32%)
CMYKcmyk(0%, 80.2%, 21%, 68.2%)
CIE-LABlab(17.88, 34.92, -13.65)
CIE-LCHlch(17.88, 37.50, 338.64°)
OKLaboklab(30.67% 0.1043 -0.0368)
OKLCHoklch(30.67% 0.111 340.6)
XYZxyz(4.5042, 2.4905, 5.0930)
Luminance0.0249 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511040 #105121
analogous
#421051 #511040 #511020
triadic
#511040 #405110 #104051
tetradic
#511040 #514210 #105121 #102051
square
#511040 #514210 #105121 #102051
split-complementary
#511040 #205110 #105142
monochromatic
#1A0514 #1E0618 #511040 #841A68 #B72491

Accessibility & contrast

On white

14.02
#511040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#511040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511040
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511040#FFFFFF#000000##FFFFFF
##5110401.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152541
Deuteranopia (green-blind)
#2A2F3E
Tritanopia (blue-blind)
#561226
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #511040;
/* rgb */ color: rgb(81, 16, 64);
/* oklch */ color: oklch(30.7% 0.111 340.6);
Tailwind
colors: {
  custom: {
    50: '#855675',
    500: '#511040',
    950: '#000000',
  },
}
SCSS
$custom: #511040;
$custom-light: #855675;
$custom-dark: #000000;
JSON
{
  "hex": "#511040",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 315.692,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.30668,
    "c": 0.11063,
    "h": 340.6
  },
  "luminance": 0.0249
}

Semantic roles & 50–950 ramp

primary
#511040
secondary
#328B49
accent
#EA6B3E
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #511040

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

Preview Lab → · Contrast checker → · Palette generator →

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