#782040#782040

#782040 is a dark, vivid pink. Relative luminance 0.054; OKLCH L 39.4% C 0.124 H 2.7°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#782040
RGBrgb(120, 32, 64)
HSLhsl(338, 58%, 30%)
HSVhsv(338, 73%, 47%)
CMYKcmyk(0%, 73.3%, 46.7%, 52.9%)
CIE-LABlab(27.84, 40.52, 2.07)
CIE-LCHlch(27.84, 40.57, 2.92°)
OKLaboklab(39.41% 0.124 0.0058)
OKLCHoklch(39.41% 0.124 2.7)
XYZxyz(9.1884, 5.3974, 5.4074)
Luminance0.0540 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782040 #207858
analogous
#78206C #782040 #782C20
triadic
#782040 #407820 #204078
tetradic
#782040 #6C7820 #207858 #2C2078
square
#782040 #6C7820 #207858 #2C2078
split-complementary
#782040 #20782C #206C78
monochromatic
#18060D #481326 #782040 #A82D5A #CD4577

Accessibility & contrast

On white

10.10
#782040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#782040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782040
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782040#FFFFFF#000000##FFFFFF
##7820401.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#333741
Deuteranopia (green-blind)
#4B483E
Tritanopia (blue-blind)
#83132D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #782040;
/* rgb */ color: rgb(120, 32, 64);
/* oklch */ color: oklch(39.4% 0.124 2.7);
Tailwind
colors: {
  custom: {
    50: '#a36374',
    500: '#782040',
    950: '#000000',
  },
}
SCSS
$custom: #782040;
$custom-light: #a36374;
$custom-dark: #000000;
JSON
{
  "hex": "#782040",
  "rgb": {
    "r": 120,
    "g": 32,
    "b": 64
  },
  "hsl": {
    "h": 338.182,
    "s": 57.895,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39407,
    "c": 0.12415,
    "h": 2.7
  },
  "luminance": 0.05396
}

Semantic roles & 50–950 ramp

primary
#782040
secondary
#48AB87
accent
#E1A947
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #782040

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

Preview Lab → · Contrast checker → · Palette generator →

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