#782872#782872

#782872 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.5% C 0.144 H 330.9°. Best body text is #FFFFFF at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#782872
RGBrgb(120, 40, 114)
HSLhsl(305, 50%, 31%)
HSVhsv(305, 67%, 47%)
CMYKcmyk(0%, 66.7%, 5%, 52.9%)
CIE-LABlab(31.18, 44.25, -25.52)
CIE-LCHlch(31.18, 51.09, 330.03°)
OKLaboklab(42.54% 0.1259 -0.0701)
OKLCHoklch(42.54% 0.144 330.9)
XYZxyz(11.5417, 6.7264, 16.6068)
Luminance0.0673 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782872 #28782E
analogous
#562878 #782872 #78284A
triadic
#782872 #727828 #287278
tetradic
#782872 #785628 #28782E #284A78
square
#782872 #785628 #28782E #284A78
split-complementary
#782872 #4A7828 #287856
monochromatic
#1C091B #4A1946 #782872 #A6379E #C654BE

Accessibility & contrast

On white

8.95
#782872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#782872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782872
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782872#FFFFFF#000000##FFFFFF
##7828721.008.952.358.95
#FFFFFF8.951.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#234274
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#7D3049
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #782872;
/* rgb */ color: rgb(120, 40, 114);
/* oklch */ color: oklch(42.5% 0.144 330.9);
Tailwind
colors: {
  custom: {
    50: '#a2689b',
    500: '#782872',
    950: '#000000',
  },
}
SCSS
$custom: #782872;
$custom-light: #a2689b;
$custom-dark: #000000;
JSON
{
  "hex": "#782872",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 114
  },
  "hsl": {
    "h": 304.5,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42543,
    "c": 0.14409,
    "h": 330.9
  },
  "luminance": 0.06726
}

Semantic roles & 50–950 ramp

primary
#782872
secondary
#52AA58
accent
#DA594E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #782872

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

Preview Lab → · Contrast checker → · Palette generator →

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