#781771#781771

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

Color values

HEX#781771
RGBrgb(120, 23, 113)
HSLhsl(304, 68%, 28%)
HSVhsv(304, 81%, 47%)
CMYKcmyk(0%, 80.8%, 5.8%, 52.9%)
CIE-LABlab(28.90, 50.37, -28.47)
CIE-LCHlch(28.90, 57.86, 330.52°)
OKLaboklab(40.89% 0.144 -0.0785)
OKLCHoklch(40.89% 0.164 331.4)
XYZxyz(11.0328, 5.7990, 16.1578)
Luminance0.0580 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#781771 #17781E
analogous
#4E1778 #781771 #781740
triadic
#781771 #717817 #177178
tetradic
#781771 #784E17 #17781E #174078
square
#781771 #784E17 #17781E #174078
split-complementary
#781771 #407817 #17784E
monochromatic
#1A0518 #450D41 #781771 #AB21A1 #D832CC

Accessibility & contrast

On white

9.72
#781771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #781771
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##781771#FFFFFF#000000##FFFFFF
##7817711.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3C73
Deuteranopia (green-blind)
#37496F
Tritanopia (blue-blind)
#7D2444
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #781771;
/* rgb */ color: rgb(120, 23, 113);
/* oklch */ color: oklch(40.9% 0.164 331.4);
Tailwind
colors: {
  custom: {
    50: '#a2619a',
    500: '#781771',
    950: '#000000',
  },
}
SCSS
$custom: #781771;
$custom-light: #a2619a;
$custom-dark: #000000;
JSON
{
  "hex": "#781771",
  "rgb": {
    "r": 120,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 304.33,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40886,
    "c": 0.164,
    "h": 331.4
  },
  "luminance": 0.05798
}

Semantic roles & 50–950 ramp

primary
#781771
secondary
#3EAD46
accent
#EB4A3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #781771

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

Preview Lab → · Contrast checker → · Palette generator →

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