#781778#781778

#781778 is a dark, vivid purple. Relative luminance 0.060; OKLCH L 41.3% C 0.169 H 328.1°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#781778
RGBrgb(120, 23, 120)
HSLhsl(300, 68%, 28%)
HSVhsv(300, 81%, 47%)
CMYKcmyk(0%, 80.8%, 0%, 52.9%)
CIE-LABlab(29.32, 51.55, -32.27)
CIE-LCHlch(29.32, 60.81, 327.96°)
OKLaboklab(41.32% 0.1439 -0.0895)
OKLCHoklch(41.32% 0.169 328.1)
XYZxyz(11.4422, 5.9628, 18.3139)
Luminance0.0596 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781778 #177817
analogous
#471778 #781778 #781747
triadic
#781778 #787817 #177878
tetradic
#781778 #784717 #177817 #174778
square
#781778 #784717 #177817 #174778
split-complementary
#781778 #477817 #177847
monochromatic
#1A051A #450D45 #781778 #AB21AB #D832D8

Accessibility & contrast

On white

9.58
#781778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#781778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781778
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781778#FFFFFF#000000##FFFFFF
##7817781.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7B
Deuteranopia (green-blind)
#334976
Tritanopia (blue-blind)
#7C2847
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781778;
/* rgb */ color: rgb(120, 23, 120);
/* oklch */ color: oklch(41.3% 0.169 328.1);
Tailwind
colors: {
  custom: {
    50: '#a2619f',
    500: '#781778',
    950: '#000000',
  },
}
SCSS
$custom: #781778;
$custom-light: #a2619f;
$custom-dark: #000000;
JSON
{
  "hex": "#781778",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 300,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.4132,
    "c": 0.16947,
    "h": 328.1
  },
  "luminance": 0.05962
}

Semantic roles & 50–950 ramp

primary
#781778
secondary
#3EAD3E
accent
#EB3D3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781778

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

Preview Lab → · Contrast checker → · Palette generator →

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