#511342#511342

#511342 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.1% C 0.108 H 339.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#511342
RGBrgb(81, 19, 66)
HSLhsl(315, 62%, 20%)
HSVhsv(315, 77%, 32%)
CMYKcmyk(0%, 76.5%, 18.5%, 68.2%)
CIE-LABlab(18.40, 34.05, -14.23)
CIE-LCHlch(18.40, 36.90, 337.32°)
OKLaboklab(31.09% 0.1011 -0.0385)
OKLCHoklch(31.09% 0.108 339.2)
XYZxyz(4.6097, 2.6089, 5.4140)
Luminance0.0261 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511342 #135122
analogous
#411351 #511342 #511323
triadic
#511342 #425113 #134251
tetradic
#511342 #514113 #135122 #132351
square
#511342 #514113 #135122 #132351
split-complementary
#511342 #235113 #135141
monochromatic
#190614 #1F071A #511342 #831F6A #B42A93

Accessibility & contrast

On white

13.80
#511342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#511342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511342
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511342#FFFFFF#000000##FFFFFF
##5113421.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162743
Deuteranopia (green-blind)
#2A3041
Tritanopia (blue-blind)
#561528
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511342;
/* rgb */ color: rgb(81, 19, 66);
/* oklch */ color: oklch(31.1% 0.108 339.2);
Tailwind
colors: {
  custom: {
    50: '#845776',
    500: '#511342',
    950: '#000000',
  },
}
SCSS
$custom: #511342;
$custom-light: #845776;
$custom-dark: #000000;
JSON
{
  "hex": "#511342",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 314.516,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31085,
    "c": 0.10812,
    "h": 339.2
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#511342
secondary
#368A4A
accent
#E56A43
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #511342

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

Preview Lab → · Contrast checker → · Palette generator →

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