#771E8B#771E8B

#771E8B is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.178 H 319.4°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#771E8B
RGBrgb(119, 30, 139)
HSLhsl(289, 64%, 33%)
HSVhsv(289, 78%, 55%)
CMYKcmyk(14.4%, 78.4%, 0%, 45.5%)
CIE-LABlab(31.15, 52.60, -41.25)
CIE-LCHlch(31.15, 66.85, 321.89°)
OKLaboklab(42.98% 0.1351 -0.1158)
OKLCHoklch(42.98% 0.178 319.4)
XYZxyz(12.7316, 6.7152, 25.0466)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771E8B #328B1E
analogous
#401E8B #771E8B #8B1E68
triadic
#771E8B #8B771E #1E8B77
tetradic
#771E8B #8B401E #328B1E #1E688B
square
#771E8B #8B401E #328B1E #1E688B
split-complementary
#771E8B #688B1E #1E8B40
monochromatic
#210826 #4C1359 #771E8B #A229BD #BE4BD8

Accessibility & contrast

On white

8.96
#771E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#771E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771E8B
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771E8B#FFFFFF#000000##FFFFFF
##771E8B1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#274C89
Tritanopia (blue-blind)
#773554
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #771e8b;
/* rgb */ color: rgb(119, 30, 139);
/* oklch */ color: oklch(43.0% 0.178 319.4);
Tailwind
colors: {
  custom: {
    50: '#a265ad',
    500: '#771e8b',
    950: '#000000',
  },
}
SCSS
$custom: #771e8b;
$custom-light: #a265ad;
$custom-dark: #000000;
JSON
{
  "hex": "#771e8b",
  "rgb": {
    "r": 119,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 288.991,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42981,
    "c": 0.17796,
    "h": 319.4
  },
  "luminance": 0.06715
}

Semantic roles & 50–950 ramp

primary
#771E8B
secondary
#5FBB4A
accent
#E7405F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #771E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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