#802040#802040

#802040 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.8% C 0.132 H 5.2°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#802040
RGBrgb(128, 32, 64)
HSLhsl(340, 60%, 31%)
HSVhsv(340, 75%, 50%)
CMYKcmyk(0%, 75%, 50%, 49.8%)
CIE-LABlab(29.40, 43.05, 4.51)
CIE-LCHlch(29.40, 43.29, 5.98°)
OKLaboklab(40.85% 0.1315 0.0119)
OKLCHoklch(40.85% 0.132 5.2)
XYZxyz(10.3449, 5.9938, 5.4617)
Luminance0.0599 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#802040 #208060
analogous
#802070 #802040 #803020
triadic
#802040 #408020 #204080
tetradic
#802040 #708020 #208060 #302080
square
#802040 #708020 #208060 #302080
split-complementary
#802040 #208030 #207080
monochromatic
#1E080F #4F1428 #802040 #B12C58 #D14976

Accessibility & contrast

On white

9.55
#802040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#802040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #802040
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##802040#FFFFFF#000000##FFFFFF
##8020401.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373941
Deuteranopia (green-blind)
#504C3E
Tritanopia (blue-blind)
#8C0D2D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #802040;
/* rgb */ color: rgb(128, 32, 64);
/* oklch */ color: oklch(40.8% 0.132 5.2);
Tailwind
colors: {
  custom: {
    50: '#aa6474',
    500: '#802040',
    950: '#000000',
  },
}
SCSS
$custom: #802040;
$custom-light: #aa6474;
$custom-dark: #000000;
JSON
{
  "hex": "#802040",
  "rgb": {
    "r": 128,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 340,
    "s": 60,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40847,
    "c": 0.13208,
    "h": 5.2
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

primary
#802040
secondary
#49B390
accent
#E3AE45
background
#FBF6F7
surface
#F6EBED
border
#D0C6C8
text
#110608
muted
#807A7B

Preview Lab

Preview with #802040

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

Preview Lab → · Contrast checker → · Palette generator →

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