#782158#782158

#782158 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.5% C 0.134 H 345.9°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#782158
RGBrgb(120, 33, 88)
HSLhsl(322, 57%, 30%)
HSVhsv(322, 73%, 47%)
CMYKcmyk(0%, 72.5%, 26.7%, 52.9%)
CIE-LABlab(28.87, 43.05, -12.33)
CIE-LCHlch(28.87, 44.78, 344.02°)
OKLaboklab(40.45% 0.1303 -0.0327)
OKLCHoklch(40.45% 0.134 345.9)
XYZxyz(10.0514, 5.7864, 9.8182)
Luminance0.0578 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782158 #217841
analogous
#6D2178 #782158 #78212C
triadic
#782158 #587821 #215878
tetradic
#782158 #786D21 #217841 #212C78
square
#782158 #786D21 #217841 #212C78
split-complementary
#782158 #2C7821 #21786D
monochromatic
#180712 #481435 #782158 #A82E7B #CC479B

Accessibility & contrast

On white

9.74
#782158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#782158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782158
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782158#FFFFFF#000000##FFFFFF
##7821581.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3B5A
Deuteranopia (green-blind)
#454956
Tritanopia (blue-blind)
#801F39
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #782158;
/* rgb */ color: rgb(120, 33, 88);
/* oklch */ color: oklch(40.5% 0.134 345.9);
Tailwind
colors: {
  custom: {
    50: '#a26487',
    500: '#782158',
    950: '#000000',
  },
}
SCSS
$custom: #782158;
$custom-light: #a26487;
$custom-dark: #000000;
JSON
{
  "hex": "#782158",
  "rgb": {
    "r": 120,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 322.069,
    "s": 56.863,
    "l": 30
  },
  "oklch": {
    "l": 0.40453,
    "c": 0.13436,
    "h": 345.9
  },
  "luminance": 0.05785
}

Semantic roles & 50–950 ramp

primary
#782158
secondary
#4AAB6E
accent
#E08048
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#0F060B
muted
#7F7A7C

Preview Lab

Preview with #782158

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

Preview Lab → · Contrast checker → · Palette generator →

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