#781872#781872

#781872 is a dark, vivid purple. Relative luminance 0.059; OKLCH L 41.0% C 0.164 H 330.9°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#781872
RGBrgb(120, 24, 114)
HSLhsl(304, 67%, 28%)
HSVhsv(304, 80%, 47%)
CMYKcmyk(0%, 80%, 5%, 52.9%)
CIE-LABlab(29.06, 50.24, -28.85)
CIE-LCHlch(29.06, 57.93, 330.13°)
OKLaboklab(41.02% 0.1431 -0.0796)
OKLCHoklch(41.02% 0.164 330.9)
XYZxyz(11.1096, 5.8621, 16.4627)
Luminance0.0586 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781872 #18781E
analogous
#4E1878 #781872 #781842
triadic
#781872 #727818 #187278
tetradic
#781872 #784E18 #18781E #184278
square
#781872 #784E18 #18781E #184278
split-complementary
#781872 #427818 #18784E
monochromatic
#1A0518 #450E42 #781872 #AB22A2 #D634CC

Accessibility & contrast

On white

9.67
#781872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#781872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781872
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781872#FFFFFF#000000##FFFFFF
##7818721.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C74
Deuteranopia (green-blind)
#374970
Tritanopia (blue-blind)
#7D2544
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #781872;
/* rgb */ color: rgb(120, 24, 114);
/* oklch */ color: oklch(41.0% 0.164 330.9);
Tailwind
colors: {
  custom: {
    50: '#a2619b',
    500: '#781872',
    950: '#000000',
  },
}
SCSS
$custom: #781872;
$custom-light: #a2619b;
$custom-dark: #000000;
JSON
{
  "hex": "#781872",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 303.75,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41021,
    "c": 0.16378,
    "h": 330.9
  },
  "luminance": 0.05861
}

Semantic roles & 50–950 ramp

primary
#781872
secondary
#3FAD46
accent
#EA493E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781872

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

Preview Lab → · Contrast checker → · Palette generator →

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