#771F9E#771F9E

#771F9E is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.5% C 0.194 H 312.5°. Best body text is #FFFFFF at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#771F9E
RGBrgb(119, 31, 158)
HSLhsl(282, 67%, 37%)
HSVhsv(282, 80%, 62%)
CMYKcmyk(24.7%, 80.4%, 0%, 38%)
CIE-LABlab(32.64, 56.09, -50.50)
CIE-LCHlch(32.64, 75.48, 318.00°)
OKLaboklab(44.46% 0.131 -0.143)
OKLCHoklch(44.46% 0.194 312.5)
XYZxyz(14.2682, 7.3710, 33.0122)
Luminance0.0737 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771F9E #469E1F
analogous
#381F9E #771F9E #9E1F86
triadic
#771F9E #9E771F #1F9E77
tetradic
#771F9E #9E381F #469E1F #1F869E
square
#771F9E #9E381F #469E1F #1F869E
split-complementary
#771F9E #869E1F #1F9E38
monochromatic
#2A0B38 #50156B #771F9E #9E29D1 #B559DE

Accessibility & contrast

On white

8.49
#771F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#771F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771F9E
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771F9E#FFFFFF#000000##FFFFFF
##771F9E1.008.492.478.49
#FFFFFF8.491.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A1
Deuteranopia (green-blind)
#054E9B
Tritanopia (blue-blind)
#723E5F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #771f9e;
/* rgb */ color: rgb(119, 31, 158);
/* oklch */ color: oklch(44.5% 0.194 312.5);
Tailwind
colors: {
  custom: {
    50: '#a366bb',
    500: '#771f9e',
    950: '#000000',
  },
}
SCSS
$custom: #771f9e;
$custom-light: #a366bb;
$custom-dark: #000000;
JSON
{
  "hex": "#771f9e",
  "rgb": {
    "r": 119,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 281.575,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.44462,
    "c": 0.19393,
    "h": 312.5
  },
  "luminance": 0.07371
}

Semantic roles & 50–950 ramp

primary
#771F9E
secondary
#78C256
accent
#EA3E73
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #771F9E

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

Preview Lab → · Contrast checker → · Palette generator →

#771F9E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva