#511340#511340

#511340 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.0% C 0.107 H 340.8°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#511340
RGBrgb(81, 19, 64)
HSLhsl(316, 62%, 20%)
HSVhsv(316, 77%, 32%)
CMYKcmyk(0%, 76.5%, 21%, 68.2%)
CIE-LABlab(18.30, 33.72, -12.99)
CIE-LCHlch(18.30, 36.14, 338.92°)
OKLaboklab(30.98% 0.1007 -0.035)
OKLCHoklch(30.98% 0.107 340.8)
XYZxyz(4.5518, 2.5857, 5.1089)
Luminance0.0259 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511340 #135124
analogous
#431351 #511340 #511321
triadic
#511340 #405113 #134051
tetradic
#511340 #514313 #135124 #132151
square
#511340 #514313 #135124 #132151
split-complementary
#511340 #215113 #135143
monochromatic
#190614 #1F0719 #511340 #831F67 #B42A8E

Accessibility & contrast

On white

13.84
#511340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511340
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511340#FFFFFF#000000##FFFFFF
##5113401.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182641
Deuteranopia (green-blind)
#2B303F
Tritanopia (blue-blind)
#561427
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511340;
/* rgb */ color: rgb(81, 19, 64);
/* oklch */ color: oklch(31.0% 0.107 340.8);
Tailwind
colors: {
  custom: {
    50: '#845775',
    500: '#511340',
    950: '#000000',
  },
}
SCSS
$custom: #511340;
$custom-light: #845775;
$custom-dark: #000000;
JSON
{
  "hex": "#511340",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 316.452,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30978,
    "c": 0.10658,
    "h": 340.8
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#511340
secondary
#368A4D
accent
#E56F43
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0308
muted
#7C787B

Preview Lab

Preview with #511340

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

Preview Lab → · Contrast checker → · Palette generator →

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