#772AA5#772AA5

#772AA5 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.189 H 309.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#772AA5
RGBrgb(119, 42, 165)
HSLhsl(278, 59%, 41%)
HSVhsv(278, 75%, 65%)
CMYKcmyk(27.9%, 74.5%, 0%, 35.3%)
CIE-LABlab(34.59, 53.49, -51.57)
CIE-LCHlch(34.59, 74.30, 316.05°)
OKLaboklab(46% 0.1198 -0.1462)
OKLCHoklch(46% 0.189 309.3)
XYZxyz(15.2259, 8.2948, 36.3890)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AA5 #58A52A
analogous
#392AA5 #772AA5 #A52A95
triadic
#772AA5 #A5772A #2AA577
tetradic
#772AA5 #A5392A #58A52A #2A95A5
square
#772AA5 #A5392A #58A52A #2A95A5
split-complementary
#772AA5 #95A52A #2AA539
monochromatic
#311143 #541E74 #772AA5 #983ECE #B26FDA

Accessibility & contrast

On white

7.90
#772AA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#772AA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AA5
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AA5#FFFFFF#000000##FFFFFF
##772AA51.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA8
Deuteranopia (green-blind)
#0652A2
Tritanopia (blue-blind)
#704765
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772aa5;
/* rgb */ color: rgb(119, 42, 165);
/* oklch */ color: oklch(46.0% 0.189 309.3);
Tailwind
colors: {
  custom: {
    50: '#a36bc0',
    500: '#772aa5',
    950: '#000000',
  },
}
SCSS
$custom: #772aa5;
$custom-light: #a36bc0;
$custom-dark: #000000;
JSON
{
  "hex": "#772aa5",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 165
  },
  "hsl": {
    "h": 277.561,
    "s": 59.42,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46002,
    "c": 0.18903,
    "h": 309.3
  },
  "luminance": 0.08294
}

Semantic roles & 50–950 ramp

primary
#772AA5
secondary
#8AC169
accent
#E34580
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772AA5

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

Preview Lab → · Contrast checker → · Palette generator →

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