#772AA0#772AA0

#772AA0 is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.6% C 0.184 H 310.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#772AA0
RGBrgb(119, 42, 160)
HSLhsl(279, 58%, 40%)
HSVhsv(279, 74%, 63%)
CMYKcmyk(25.6%, 73.8%, 0%, 37.3%)
CIE-LABlab(34.22, 52.39, -49.15)
CIE-LCHlch(34.22, 71.83, 316.83°)
OKLaboklab(45.63% 0.1206 -0.1391)
OKLCHoklch(45.63% 0.184 310.9)
XYZxyz(14.7797, 8.1163, 34.0389)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AA0 #53A02A
analogous
#3C2AA0 #772AA0 #A02A8E
triadic
#772AA0 #A0772A #2AA077
tetradic
#772AA0 #A03C2A #53A02A #2A8EA0
square
#772AA0 #A03C2A #53A02A #2A8EA0
split-complementary
#772AA0 #8EA02A #2AA03C
monochromatic
#2F113F #531D70 #772AA0 #9A3CCC #B36CD8

Accessibility & contrast

On white

8.01
#772AA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#772AA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AA0
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AA0#FFFFFF#000000##FFFFFF
##772AA01.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#15529D
Tritanopia (blue-blind)
#724563
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #772aa0;
/* rgb */ color: rgb(119, 42, 160);
/* oklch */ color: oklch(45.6% 0.184 310.9);
Tailwind
colors: {
  custom: {
    50: '#a26bbd',
    500: '#772aa0',
    950: '#000000',
  },
}
SCSS
$custom: #772aa0;
$custom-light: #a26bbd;
$custom-dark: #000000;
JSON
{
  "hex": "#772aa0",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 160
  },
  "hsl": {
    "h": 279.153,
    "s": 58.416,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45628,
    "c": 0.18412,
    "h": 310.9
  },
  "luminance": 0.08116
}

Semantic roles & 50–950 ramp

primary
#772AA0
secondary
#85BF67
accent
#E2467C
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772AA0

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

Preview Lab → · Contrast checker → · Palette generator →

#772AA0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva