#511238#511238

#511238 is a dark, moderate pink. Relative luminance 0.025; OKLCH L 30.5% C 0.102 H 347.8°. Best body text is #FFFFFF at 14.06:1 contrast (WCAG AA passes).

Color values

HEX#511238
RGBrgb(81, 18, 56)
HSLhsl(324, 64%, 19%)
HSVhsv(324, 78%, 32%)
CMYKcmyk(0%, 77.8%, 30.9%, 68.2%)
CIE-LABlab(17.77, 32.92, -8.20)
CIE-LCHlch(17.77, 33.92, 346.01°)
OKLaboklab(30.47% 0.1001 -0.0216)
OKLCHoklch(30.47% 0.102 347.8)
XYZxyz(4.3237, 2.4679, 3.9893)
Luminance0.0247 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511238 #12512B
analogous
#4B1251 #511238 #511218
triadic
#511238 #385112 #123851
tetradic
#511238 #514B12 #12512B #121851
square
#511238 #514B12 #12512B #121851
split-complementary
#511238 #185112 #12514B
monochromatic
#190611 #1F0715 #511238 #831D5B #B5287D

Accessibility & contrast

On white

14.06
#511238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511238
14.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511238#FFFFFF#000000##FFFFFF
##5112381.0014.061.4914.06
#FFFFFF14.061.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2539
Deuteranopia (green-blind)
#2D3037
Tritanopia (blue-blind)
#571023
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #511238;
/* rgb */ color: rgb(81, 18, 56);
/* oklch */ color: oklch(30.5% 0.102 347.8);
Tailwind
colors: {
  custom: {
    50: '#85566e',
    500: '#511238',
    950: '#000000',
  },
}
SCSS
$custom: #511238;
$custom-light: #85566e;
$custom-dark: #000000;
JSON
{
  "hex": "#511238",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 323.81,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.30468,
    "c": 0.10239,
    "h": 347.8
  },
  "luminance": 0.02467
}

Semantic roles & 50–950 ramp

primary
#511238
secondary
#358A57
accent
#E78341
background
#F8F5F6
surface
#EFE9EB
border
#CAC5C6
text
#0B0307
muted
#7C787A

Preview Lab

Preview with #511238

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

Preview Lab → · Contrast checker → · Palette generator →

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