#782540#782540

#782540 is a dark, moderate pink. Relative luminance 0.057; OKLCH L 40.0% C 0.118 H 4.2°. Best body text is #FFFFFF at 9.83:1 contrast (WCAG AA passes).

Color values

HEX#782540
RGBrgb(120, 37, 64)
HSLhsl(340, 53%, 31%)
HSVhsv(340, 69%, 47%)
CMYKcmyk(0%, 69.2%, 46.7%, 52.9%)
CIE-LABlab(28.61, 38.39, 3.18)
CIE-LCHlch(28.61, 38.52, 4.74°)
OKLaboklab(39.98% 0.1173 0.0086)
OKLCHoklch(39.98% 0.118 4.2)
XYZxyz(9.3334, 5.6875, 5.4558)
Luminance0.0569 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782540 #25785D
analogous
#782569 #782540 #783325
triadic
#782540 #407825 #254078
tetradic
#782540 #697825 #25785D #332578
square
#782540 #697825 #25785D #332578
split-complementary
#782540 #257833 #256978
monochromatic
#1A080E #491727 #782540 #A73359 #C94F76

Accessibility & contrast

On white

9.83
#782540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#782540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782540
9.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782540#FFFFFF#000000##FFFFFF
##7825401.009.832.149.83
#FFFFFF9.831.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373941
Deuteranopia (green-blind)
#4C493E
Tritanopia (blue-blind)
#831A30
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #782540;
/* rgb */ color: rgb(120, 37, 64);
/* oklch */ color: oklch(40.0% 0.118 4.2);
Tailwind
colors: {
  custom: {
    50: '#a36574',
    500: '#782540',
    950: '#000000',
  },
}
SCSS
$custom: #782540;
$custom-light: #a36574;
$custom-dark: #000000;
JSON
{
  "hex": "#782540",
  "rgb": {
    "r": 120,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 340.482,
    "s": 52.866,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39979,
    "c": 0.11756,
    "h": 4.2
  },
  "luminance": 0.05686
}

Semantic roles & 50–950 ramp

primary
#782540
secondary
#4EAA8C
accent
#DCAD4C
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #782540

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

Preview Lab → · Contrast checker → · Palette generator →

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