#771B7E#771B7E

#771B7E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.170 H 324.9°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#771B7E
RGBrgb(119, 27, 126)
HSLhsl(296, 65%, 30%)
HSVhsv(296, 79%, 49%)
CMYKcmyk(5.6%, 78.6%, 0%, 50.6%)
CIE-LABlab(29.94, 51.16, -35.07)
CIE-LCHlch(29.94, 62.02, 325.57°)
OKLaboklab(41.85% 0.139 -0.0977)
OKLCHoklch(41.85% 0.17 324.9)
XYZxyz(11.7653, 6.2129, 20.3141)
Luminance0.0621 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771B7E #227E1B
analogous
#461B7E #771B7E #7E1B53
triadic
#771B7E #7E771B #1B7E77
tetradic
#771B7E #7E461B #227E1B #1B537E
square
#771B7E #7E461B #227E1B #1B537E
split-complementary
#771B7E #537E1B #1B7E46
monochromatic
#180519 #47104C #771B7E #A726B0 #CB3ED6

Accessibility & contrast

On white

9.36
#771B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#771B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771B7E
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771B7E#FFFFFF#000000##FFFFFF
##771B7E1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#7A2D4C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #771b7e;
/* rgb */ color: rgb(119, 27, 126);
/* oklch */ color: oklch(41.9% 0.170 324.9);
Tailwind
colors: {
  custom: {
    50: '#a263a4',
    500: '#771b7e',
    950: '#000000',
  },
}
SCSS
$custom: #771b7e;
$custom-light: #a263a4;
$custom-dark: #000000;
JSON
{
  "hex": "#771b7e",
  "rgb": {
    "r": 119,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 295.758,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.41851,
    "c": 0.16992,
    "h": 324.9
  },
  "luminance": 0.06212
}

Semantic roles & 50–950 ramp

primary
#771B7E
secondary
#4BB243
accent
#E8404C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #771B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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