#771EA7#771EA7

#771EA7 is a mid, highly saturated violet. Relative luminance 0.076; OKLCH L 45.1% C 0.203 H 309.7°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#771EA7
RGBrgb(119, 30, 167)
HSLhsl(279, 70%, 39%)
HSVhsv(279, 82%, 65%)
CMYKcmyk(28.7%, 82%, 0%, 34.5%)
CIE-LABlab(33.22, 58.31, -54.99)
CIE-LCHlch(33.22, 80.15, 316.68°)
OKLaboklab(45.09% 0.1296 -0.1562)
OKLCHoklch(45.09% 0.203 309.7)
XYZxyz(15.0457, 7.6408, 37.2340)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771EA7 #4EA71E
analogous
#321EA7 #771EA7 #A71E92
triadic
#771EA7 #A7771E #1EA777
tetradic
#771EA7 #A7321E #4EA71E #1E92A7
square
#771EA7 #A7321E #4EA71E #1E92A7
split-complementary
#771EA7 #92A71E #1EA732
monochromatic
#2D0B3F #521573 #771EA7 #9B2AD9 #B45DE2

Accessibility & contrast

On white

8.31
#771EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#771EA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771EA7
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771EA7#FFFFFF#000000##FFFFFF
##771EA71.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAB
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#704264
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #771ea7;
/* rgb */ color: rgb(119, 30, 167);
/* oklch */ color: oklch(45.1% 0.203 309.7);
Tailwind
colors: {
  custom: {
    50: '#a366c2',
    500: '#771ea7',
    950: '#000000',
  },
}
SCSS
$custom: #771ea7;
$custom-light: #a366c2;
$custom-dark: #000000;
JSON
{
  "hex": "#771ea7",
  "rgb": {
    "r": 119,
    "g": 30,
    "b": 167
  },
  "hsl": {
    "h": 278.978,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.45091,
    "c": 0.20298,
    "h": 309.7
  },
  "luminance": 0.07641
}

Semantic roles & 50–950 ramp

primary
#771EA7
secondary
#80C65B
accent
#EC3B79
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100612
muted
#7F7A81

Preview Lab

Preview with #771EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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