#771F9B#771F9B

#771F9B is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.191 H 313.5°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#771F9B
RGBrgb(119, 31, 155)
HSLhsl(283, 67%, 36%)
HSVhsv(283, 80%, 61%)
CMYKcmyk(23.2%, 80%, 0%, 39.2%)
CIE-LABlab(32.41, 55.47, -49.04)
CIE-LCHlch(32.41, 74.04, 318.52°)
OKLaboklab(44.23% 0.1316 -0.1387)
OKLCHoklch(44.23% 0.191 313.5)
XYZxyz(14.0131, 7.2689, 31.6689)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771F9B #439B1F
analogous
#391F9B #771F9B #9B1F81
triadic
#771F9B #9B771F #1F9B77
tetradic
#771F9B #9B391F #439B1F #1F819B
square
#771F9B #9B391F #439B1F #1F819B
split-complementary
#771F9B #819B1F #1F9B39
monochromatic
#290B35 #501568 #771F9B #9E29CE #B657DD

Accessibility & contrast

On white

8.56
#771F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#771F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771F9B
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771F9B#FFFFFF#000000##FFFFFF
##771F9B1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#0F4E98
Tritanopia (blue-blind)
#733D5D
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #771f9b;
/* rgb */ color: rgb(119, 31, 155);
/* oklch */ color: oklch(44.2% 0.191 313.5);
Tailwind
colors: {
  custom: {
    50: '#a366b9',
    500: '#771f9b',
    950: '#000000',
  },
}
SCSS
$custom: #771f9b;
$custom-light: #a366b9;
$custom-dark: #000000;
JSON
{
  "hex": "#771f9b",
  "rgb": {
    "r": 119,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 282.581,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44233,
    "c": 0.19121,
    "h": 313.5
  },
  "luminance": 0.07268
}

Semantic roles & 50–950 ramp

primary
#771F9B
secondary
#74C155
accent
#EA3E70
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #771F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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