#772AA7#772AA7

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

Color values

HEX#772AA7
RGBrgb(119, 42, 167)
HSLhsl(277, 60%, 41%)
HSVhsv(277, 75%, 65%)
CMYKcmyk(28.7%, 74.9%, 0%, 34.5%)
CIE-LABlab(34.74, 53.94, -52.53)
CIE-LCHlch(34.74, 75.29, 315.76°)
OKLaboklab(46.15% 0.1195 -0.149)
OKLCHoklch(46.15% 0.191 308.7)
XYZxyz(15.4093, 8.3682, 37.3552)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AA7 #5AA72A
analogous
#382AA7 #772AA7 #A72A98
triadic
#772AA7 #A7772A #2AA777
tetradic
#772AA7 #A7382A #5AA72A #2A98A7
square
#772AA7 #A7382A #5AA72A #2A98A7
split-complementary
#772AA7 #98A72A #2AA738
monochromatic
#311145 #541E76 #772AA7 #983FCF #B270DB

Accessibility & contrast

On white

7.85
#772AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#772AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AA7
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AA7#FFFFFF#000000##FFFFFF
##772AA71.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FAB
Deuteranopia (green-blind)
#0053A4
Tritanopia (blue-blind)
#704867
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #772aa7;
/* rgb */ color: rgb(119, 42, 167);
/* oklch */ color: oklch(46.2% 0.191 308.7);
Tailwind
colors: {
  custom: {
    50: '#a36bc2',
    500: '#772aa7',
    950: '#000000',
  },
}
SCSS
$custom: #772aa7;
$custom-light: #a36bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#772aa7",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 167
  },
  "hsl": {
    "h": 276.96,
    "s": 59.809,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46154,
    "c": 0.19101,
    "h": 308.7
  },
  "luminance": 0.08368
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #772AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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