#782877#782877

#782877 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.8% C 0.148 H 328.3°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#782877
RGBrgb(120, 40, 119)
HSLhsl(301, 50%, 31%)
HSVhsv(301, 67%, 47%)
CMYKcmyk(0%, 66.7%, 0.8%, 52.9%)
CIE-LABlab(31.45, 45.16, -28.26)
CIE-LCHlch(31.45, 53.27, 327.96°)
OKLaboklab(42.83% 0.1263 -0.078)
OKLCHoklch(42.83% 0.148 328.3)
XYZxyz(11.8341, 6.8434, 18.1468)
Luminance0.0684 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#782877 #287829
analogous
#512878 #782877 #78284F
triadic
#782877 #777828 #287778
tetradic
#782877 #785128 #287829 #284F78
square
#782877 #785128 #287829 #284F78
split-complementary
#782877 #4F7828 #287851
monochromatic
#1C091C #4A1949 #782877 #A637A5 #C654C5

Accessibility & contrast

On white

8.87
#782877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#782877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #782877
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##782877#FFFFFF#000000##FFFFFF
##7828771.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4379
Deuteranopia (green-blind)
#3C4E75
Tritanopia (blue-blind)
#7C324C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #782877;
/* rgb */ color: rgb(120, 40, 119);
/* oklch */ color: oklch(42.8% 0.148 328.3);
Tailwind
colors: {
  custom: {
    50: '#a2699e',
    500: '#782877',
    950: '#000000',
  },
}
SCSS
$custom: #782877;
$custom-light: #a2699e;
$custom-dark: #000000;
JSON
{
  "hex": "#782877",
  "rgb": {
    "r": 120,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 300.75,
    "s": 50,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42829,
    "c": 0.14843,
    "h": 328.3
  },
  "luminance": 0.06843
}

Semantic roles & 50–950 ramp

primary
#782877
secondary
#52AA53
accent
#DA504E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F070E
muted
#7F7A7E

Preview Lab

Preview with #782877

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

Preview Lab → · Contrast checker → · Palette generator →

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