#502140#502140

#502140 is a dark, moderate pink. Relative luminance 0.032; OKLCH L 32.7% C 0.082 H 342.4°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#502140
RGBrgb(80, 33, 64)
HSLhsl(320, 42%, 22%)
HSVhsv(320, 59%, 31%)
CMYKcmyk(0%, 58.8%, 20%, 68.6%)
CIE-LABlab(20.69, 26.39, -9.35)
CIE-LCHlch(20.69, 28.00, 340.50°)
OKLaboklab(32.7% 0.0784 -0.0249)
OKLCHoklch(32.7% 0.082 342.4)
XYZxyz(4.7776, 3.1637, 5.2085)
Luminance0.0316 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#502140 #215031
analogous
#492150 #502140 #502128
triadic
#502140 #405021 #214050
tetradic
#502140 #504921 #215031 #212850
square
#502140 #504921 #215031 #212850
split-complementary
#502140 #285021 #215049
monochromatic
#160911 #250F1D #502140 #7B3363 #A74585

Accessibility & contrast

On white

12.86
#502140 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#502140 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #502140
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##502140#FFFFFF#000000##FFFFFF
##5021401.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#242D41
Deuteranopia (green-blind)
#31353F
Tritanopia (blue-blind)
#55212D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #502140;
/* rgb */ color: rgb(80, 33, 64);
/* oklch */ color: oklch(32.7% 0.082 342.4);
Tailwind
colors: {
  custom: {
    50: '#835f74',
    500: '#502140',
    950: '#000000',
  },
}
SCSS
$custom: #502140;
$custom-light: #835f74;
$custom-dark: #000000;
JSON
{
  "hex": "#502140",
  "rgb": {
    "r": 80,
    "g": 33,
    "b": 64
  },
  "hsl": {
    "h": 320.426,
    "s": 41.593,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32698,
    "c": 0.08226,
    "h": 342.4
  },
  "luminance": 0.03163
}

Semantic roles & 50–950 ramp

primary
#502140
secondary
#49845D
accent
#D18056
background
#F8F5F7
surface
#EFE9ED
border
#CAC5C8
text
#0B0408
muted
#7C797B

Preview Lab

Preview with #502140

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

Preview Lab → · Contrast checker → · Palette generator →

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