#772AA4#772AA4

#772AA4 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.188 H 309.6°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#772AA4
RGBrgb(119, 42, 164)
HSLhsl(278, 59%, 40%)
HSVhsv(278, 74%, 64%)
CMYKcmyk(27.4%, 74.4%, 0%, 35.7%)
CIE-LABlab(34.52, 53.27, -51.09)
CIE-LCHlch(34.52, 73.81, 316.20°)
OKLaboklab(45.93% 0.12 -0.1448)
OKLCHoklch(45.93% 0.188 309.6)
XYZxyz(15.1352, 8.2585, 35.9115)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AA4 #57A42A
analogous
#3A2AA4 #772AA4 #A42A94
triadic
#772AA4 #A4772A #2AA477
tetradic
#772AA4 #A43A2A #57A42A #2A94A4
square
#772AA4 #A43A2A #57A42A #2A94A4
split-complementary
#772AA4 #94A42A #2AA43A
monochromatic
#301143 #541E73 #772AA4 #983ECD #B26EDA

Accessibility & contrast

On white

7.92
#772AA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#772AA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AA4
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AA4#FFFFFF#000000##FFFFFF
##772AA41.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA7
Deuteranopia (green-blind)
#0A52A1
Tritanopia (blue-blind)
#704665
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772aa4;
/* rgb */ color: rgb(119, 42, 164);
/* oklch */ color: oklch(45.9% 0.188 309.6);
Tailwind
colors: {
  custom: {
    50: '#a36bc0',
    500: '#772aa4',
    950: '#000000',
  },
}
SCSS
$custom: #772aa4;
$custom-light: #a36bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#772aa4",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 164
  },
  "hsl": {
    "h": 277.869,
    "s": 59.223,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45926,
    "c": 0.18805,
    "h": 309.6
  },
  "luminance": 0.08258
}

Semantic roles & 50–950 ramp

primary
#772AA4
secondary
#89C169
accent
#E2457F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772AA4

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

Preview Lab → · Contrast checker → · Palette generator →

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