#781772#781772

#781772 is a dark, vivid purple. Relative luminance 0.058; OKLCH L 40.9% C 0.165 H 330.9°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#781772
RGBrgb(120, 23, 114)
HSLhsl(304, 68%, 28%)
HSVhsv(304, 81%, 47%)
CMYKcmyk(0%, 80.8%, 5%, 52.9%)
CIE-LABlab(28.96, 50.54, -29.02)
CIE-LCHlch(28.96, 58.27, 330.13°)
OKLaboklab(40.95% 0.144 -0.0801)
OKLCHoklch(40.95% 0.165 330.9)
XYZxyz(11.0894, 5.8217, 16.4560)
Luminance0.0582 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781772 #17781D
analogous
#4D1778 #781772 #781742
triadic
#781772 #727817 #177278
tetradic
#781772 #784D17 #17781D #174278
square
#781772 #784D17 #17781D #174278
split-complementary
#781772 #427817 #17784D
monochromatic
#1A0518 #450D41 #781772 #AB21A3 #D832CD

Accessibility & contrast

On white

9.70
#781772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781772
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781772#FFFFFF#000000##FFFFFF
##7817721.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #781772;
/* rgb */ color: rgb(120, 23, 114);
/* oklch */ color: oklch(40.9% 0.165 330.9);
Tailwind
colors: {
  custom: {
    50: '#a2619b',
    500: '#781772',
    950: '#000000',
  },
}
SCSS
$custom: #781772;
$custom-light: #a2619b;
$custom-dark: #000000;
JSON
{
  "hex": "#781772",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 303.711,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40947,
    "c": 0.16477,
    "h": 330.9
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#781772
secondary
#3EAD45
accent
#EB483D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781772

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

Preview Lab → · Contrast checker → · Palette generator →

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