#772AA1#772AA1

#772AA1 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.185 H 310.6°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#772AA1
RGBrgb(119, 42, 161)
HSLhsl(279, 59%, 40%)
HSVhsv(279, 74%, 63%)
CMYKcmyk(26.1%, 73.9%, 0%, 36.9%)
CIE-LABlab(34.30, 52.61, -49.63)
CIE-LCHlch(34.30, 72.33, 316.67°)
OKLaboklab(45.7% 0.1205 -0.1405)
OKLCHoklch(45.7% 0.185 310.6)
XYZxyz(14.8675, 8.1514, 34.5015)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AA1 #54A12A
analogous
#3C2AA1 #772AA1 #A12A8F
triadic
#772AA1 #A1772A #2AA177
tetradic
#772AA1 #A13C2A #54A12A #2A8FA1
square
#772AA1 #A13C2A #54A12A #2A8FA1
split-complementary
#772AA1 #8FA12A #2AA13C
monochromatic
#2F1140 #531D70 #772AA1 #993CCC #B36DD9

Accessibility & contrast

On white

7.98
#772AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#772AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AA1
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AA1#FFFFFF#000000##FFFFFF
##772AA11.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA4
Deuteranopia (green-blind)
#13529E
Tritanopia (blue-blind)
#714563
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772aa1;
/* rgb */ color: rgb(119, 42, 161);
/* oklch */ color: oklch(45.7% 0.185 310.6);
Tailwind
colors: {
  custom: {
    50: '#a26bbe',
    500: '#772aa1',
    950: '#000000',
  },
}
SCSS
$custom: #772aa1;
$custom-light: #a26bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#772aa1",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 278.824,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45702,
    "c": 0.1851,
    "h": 310.6
  },
  "luminance": 0.08151
}

Semantic roles & 50–950 ramp

primary
#772AA1
secondary
#86C067
accent
#E2467D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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