#781877#781877

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

Color values

HEX#781877
RGBrgb(120, 24, 119)
HSLhsl(301, 67%, 28%)
HSVhsv(301, 80%, 47%)
CMYKcmyk(0%, 80%, 0.8%, 52.9%)
CIE-LABlab(29.36, 51.08, -31.57)
CIE-LCHlch(29.36, 60.05, 328.29°)
OKLaboklab(41.33% 0.1431 -0.0875)
OKLCHoklch(41.33% 0.168 328.6)
XYZxyz(11.4020, 5.9791, 18.0027)
Luminance0.0598 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781877 #187819
analogous
#491878 #781877 #781847
triadic
#781877 #777818 #187778
tetradic
#781877 #784918 #187819 #184778
square
#781877 #784918 #187819 #184778
split-complementary
#781877 #477818 #187849
monochromatic
#1A0519 #450E44 #781877 #AB22AA #D634D5

Accessibility & contrast

On white

9.56
#781877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#781877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #781877
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781877#FFFFFF#000000##FFFFFF
##7818771.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013D79
Deuteranopia (green-blind)
#344975
Tritanopia (blue-blind)
#7C2847
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #781877;
/* rgb */ color: rgb(120, 24, 119);
/* oklch */ color: oklch(41.3% 0.168 328.6);
Tailwind
colors: {
  custom: {
    50: '#a2629f',
    500: '#781877',
    950: '#000000',
  },
}
SCSS
$custom: #781877;
$custom-light: #a2629f;
$custom-dark: #000000;
JSON
{
  "hex": "#781877",
  "rgb": {
    "r": 120,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 300.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41329,
    "c": 0.16771,
    "h": 328.6
  },
  "luminance": 0.05978
}

Semantic roles & 50–950 ramp

primary
#781877
secondary
#3FAD40
accent
#EA403E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781877

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

Preview Lab → · Contrast checker → · Palette generator →

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