#771F9F#771F9F

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

Color values

HEX#771F9F
RGBrgb(119, 31, 159)
HSLhsl(281, 67%, 37%)
HSVhsv(281, 81%, 62%)
CMYKcmyk(25.2%, 80.5%, 0%, 37.6%)
CIE-LABlab(32.71, 56.30, -50.99)
CIE-LCHlch(32.71, 75.96, 317.84°)
OKLaboklab(44.54% 0.1308 -0.1444)
OKLCHoklch(44.54% 0.195 312.2)
XYZxyz(14.3546, 7.4055, 33.4674)
Luminance0.0741 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771F9F #479F1F
analogous
#371F9F #771F9F #9F1F87
triadic
#771F9F #9F771F #1F9F77
tetradic
#771F9F #9F371F #479F1F #1F879F
square
#771F9F #9F371F #479F1F #1F879F
split-complementary
#771F9F #879F1F #1F9F37
monochromatic
#2A0B39 #51156C #771F9F #9D29D2 #B55ADF

Accessibility & contrast

On white

8.46
#771F9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#771F9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771F9F
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771F9F#FFFFFF#000000##FFFFFF
##771F9F1.008.462.488.46
#FFFFFF8.461.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#024F9C
Tritanopia (blue-blind)
#723F60
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #771f9f;
/* rgb */ color: rgb(119, 31, 159);
/* oklch */ color: oklch(44.5% 0.195 312.2);
Tailwind
colors: {
  custom: {
    50: '#a366bc',
    500: '#771f9f',
    950: '#000000',
  },
}
SCSS
$custom: #771f9f;
$custom-light: #a366bc;
$custom-dark: #000000;
JSON
{
  "hex": "#771f9f",
  "rgb": {
    "r": 119,
    "g": 31,
    "b": 159
  },
  "hsl": {
    "h": 281.25,
    "s": 67.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.44539,
    "c": 0.19483,
    "h": 312.2
  },
  "luminance": 0.07405
}

Semantic roles & 50–950 ramp

primary
#771F9F
secondary
#79C357
accent
#EA3E74
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #771F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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