#771AB4#771AB4

#771AB4 is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.9% C 0.218 H 306.2°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#771AB4
RGBrgb(119, 26, 180)
HSLhsl(276, 75%, 40%)
HSVhsv(276, 86%, 71%)
CMYKcmyk(33.9%, 85.6%, 0%, 29.4%)
CIE-LABlab(33.89, 62.25, -61.68)
CIE-LCHlch(33.89, 87.63, 315.26°)
OKLaboklab(45.89% 0.1286 -0.1758)
OKLCHoklch(45.89% 0.218 306.2)
XYZxyz(16.2135, 7.9562, 43.8527)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771AB4 #57B41A
analogous
#2A1AB4 #771AB4 #B41AA4
triadic
#771AB4 #B4771A #1AB477
tetradic
#771AB4 #B42A1A #57B41A #1AA4B4
square
#771AB4 #B42A1A #57B41A #1AA4B4
split-complementary
#771AB4 #A4B41A #1AB42A
monochromatic
#300B49 #54127F #771AB4 #982BE0 #B260E8

Accessibility & contrast

On white

8.10
#771AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#771AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771AB4
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771AB4#FFFFFF#000000##FFFFFF
##771AB41.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB8
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#6C476B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #771ab4;
/* rgb */ color: rgb(119, 26, 180);
/* oklch */ color: oklch(45.9% 0.218 306.2);
Tailwind
colors: {
  custom: {
    50: '#a566cc',
    500: '#771ab4',
    950: '#000000',
  },
}
SCSS
$custom: #771ab4;
$custom-light: #a566cc;
$custom-dark: #000000;
JSON
{
  "hex": "#771ab4",
  "rgb": {
    "r": 119,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 276.234,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45886,
    "c": 0.21779,
    "h": 306.2
  },
  "luminance": 0.07956
}

Semantic roles & 50–950 ramp

primary
#771AB4
secondary
#89CC5D
accent
#F13680
background
#FAF6FC
surface
#F4EBF9
border
#CEC6D2
text
#100613
muted
#7F7A82

Preview Lab

Preview with #771AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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