#771F8D#771F8D

#771F8D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.179 H 318.6°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#771F8D
RGBrgb(119, 31, 141)
HSLhsl(288, 64%, 34%)
HSVhsv(288, 78%, 55%)
CMYKcmyk(15.6%, 78%, 0%, 44.7%)
CIE-LABlab(31.41, 52.65, -42.08)
CIE-LCHlch(31.41, 67.39, 321.37°)
OKLaboklab(43.21% 0.1339 -0.1183)
OKLCHoklch(43.21% 0.179 318.6)
XYZxyz(12.9048, 6.8256, 25.8319)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771F8D #358D1F
analogous
#401F8D #771F8D #8D1F6C
triadic
#771F8D #8D771F #1F8D77
tetradic
#771F8D #8D401F #358D1F #1F6C8D
square
#771F8D #8D401F #358D1F #1F6C8D
split-complementary
#771F8D #6C8D1F #1F8D40
monochromatic
#220929 #4D145B #771F8D #A12ABF #BD4ED8

Accessibility & contrast

On white

8.88
#771F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#771F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771F8D
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771F8D#FFFFFF#000000##FFFFFF
##771F8D1.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#254D8B
Tritanopia (blue-blind)
#773755
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #771f8d;
/* rgb */ color: rgb(119, 31, 141);
/* oklch */ color: oklch(43.2% 0.179 318.6);
Tailwind
colors: {
  custom: {
    50: '#a265af',
    500: '#771f8d',
    950: '#000000',
  },
}
SCSS
$custom: #771f8d;
$custom-light: #a265af;
$custom-dark: #000000;
JSON
{
  "hex": "#771f8d",
  "rgb": {
    "r": 119,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 288,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43206,
    "c": 0.17867,
    "h": 318.6
  },
  "luminance": 0.06825
}

Semantic roles & 50–950 ramp

primary
#771F8D
secondary
#63BB4D
accent
#E74162
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #771F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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