#772AA8#772AA8

#772AA8 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.2% C 0.192 H 308.4°. Best body text is #FFFFFF at 7.83:1 contrast (WCAG AA passes).

Color values

HEX#772AA8
RGBrgb(119, 42, 168)
HSLhsl(277, 60%, 41%)
HSVhsv(277, 75%, 66%)
CMYKcmyk(29.2%, 75%, 0%, 34.1%)
CIE-LABlab(34.81, 54.16, -53.01)
CIE-LCHlch(34.81, 75.79, 315.62°)
OKLaboklab(46.23% 0.1193 -0.1504)
OKLCHoklch(46.23% 0.192 308.4)
XYZxyz(15.5021, 8.4053, 37.8439)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AA8 #5BA82A
analogous
#382AA8 #772AA8 #A82A9A
triadic
#772AA8 #A8772A #2AA877
tetradic
#772AA8 #A8382A #5BA82A #2A9AA8
square
#772AA8 #A8382A #5BA82A #2A9AA8
split-complementary
#772AA8 #9AA82A #2AA838
monochromatic
#321246 #541E77 #772AA8 #9840CF #B271DB

Accessibility & contrast

On white

7.83
#772AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#772AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AA8
7.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AA8#FFFFFF#000000##FFFFFF
##772AA81.007.832.687.83
#FFFFFF7.831.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0053A5
Tritanopia (blue-blind)
#6F4867
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #772aa8;
/* rgb */ color: rgb(119, 42, 168);
/* oklch */ color: oklch(46.2% 0.192 308.4);
Tailwind
colors: {
  custom: {
    50: '#a36bc3',
    500: '#772aa8',
    950: '#000000',
  },
}
SCSS
$custom: #772aa8;
$custom-light: #a36bc3;
$custom-dark: #000000;
JSON
{
  "hex": "#772aa8",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 276.667,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4623,
    "c": 0.19198,
    "h": 308.4
  },
  "luminance": 0.08405
}

Semantic roles & 50–950 ramp

primary
#772AA8
secondary
#8DC36B
accent
#E34582
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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