#771B87#771B87

#771B87 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.178 H 321.1°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#771B87
RGBrgb(119, 27, 135)
HSLhsl(291, 67%, 32%)
HSVhsv(291, 80%, 53%)
CMYKcmyk(11.9%, 80%, 0%, 47.1%)
CIE-LABlab(30.53, 52.82, -39.76)
CIE-LCHlch(30.53, 66.11, 323.03°)
OKLaboklab(42.46% 0.1382 -0.1114)
OKLCHoklch(42.46% 0.178 321.1)
XYZxyz(12.3724, 6.4558, 23.5114)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771B87 #2B871B
analogous
#411B87 #771B87 #871B61
triadic
#771B87 #87771B #1B8777
tetradic
#771B87 #87411B #2B871B #1B6187
square
#771B87 #87411B #2B871B #1B6187
split-complementary
#771B87 #61871B #1B8741
monochromatic
#1D0721 #4A1154 #771B87 #A425BA #C343D9

Accessibility & contrast

On white

9.17
#771B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#771B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771B87
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771B87#FFFFFF#000000##FFFFFF
##771B871.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#294B85
Tritanopia (blue-blind)
#783251
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #771b87;
/* rgb */ color: rgb(119, 27, 135);
/* oklch */ color: oklch(42.5% 0.178 321.1);
Tailwind
colors: {
  custom: {
    50: '#a263aa',
    500: '#771b87',
    950: '#000000',
  },
}
SCSS
$custom: #771b87;
$custom-light: #a263aa;
$custom-dark: #000000;
JSON
{
  "hex": "#771b87",
  "rgb": {
    "r": 119,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 291.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.42459,
    "c": 0.17753,
    "h": 321.1
  },
  "luminance": 0.06455
}

Semantic roles & 50–950 ramp

primary
#771B87
secondary
#55BA44
accent
#EA3E58
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #771B87

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

Preview Lab → · Contrast checker → · Palette generator →

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