#511245#511245

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

Color values

HEX#511245
RGBrgb(81, 18, 69)
HSLhsl(311, 64%, 19%)
HSVhsv(311, 78%, 32%)
CMYKcmyk(0%, 77.8%, 14.8%, 68.2%)
CIE-LABlab(18.42, 34.96, -16.28)
CIE-LCHlch(18.42, 38.57, 335.02°)
OKLaboklab(31.15% 0.1027 -0.0443)
OKLCHoklch(31.15% 0.112 336.7)
XYZxyz(4.6839, 2.6120, 5.8866)
Luminance0.0261 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511245 #12511E
analogous
#3E1251 #511245 #511226
triadic
#511245 #455112 #124551
tetradic
#511245 #513E12 #12511E #122651
square
#511245 #513E12 #12511E #122651
split-complementary
#511245 #265112 #12513E
monochromatic
#190615 #1F071A #511245 #831D70 #B5289A

Accessibility & contrast

On white

13.79
#511245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511245
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511245#FFFFFF#000000##FFFFFF
##5112451.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132746
Deuteranopia (green-blind)
#293043
Tritanopia (blue-blind)
#561629
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #511245;
/* rgb */ color: rgb(81, 18, 69);
/* oklch */ color: oklch(31.1% 0.112 336.7);
Tailwind
colors: {
  custom: {
    50: '#845779',
    500: '#511245',
    950: '#000000',
  },
}
SCSS
$custom: #511245;
$custom-light: #845779;
$custom-dark: #000000;
JSON
{
  "hex": "#511245",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 311.429,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31148,
    "c": 0.11188,
    "h": 336.7
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#511245
secondary
#358A45
accent
#E76141
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #511245

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

Preview Lab → · Contrast checker → · Palette generator →

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