#772AAB#772AAB

#772AAB is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.5% C 0.195 H 307.5°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#772AAB
RGBrgb(119, 42, 171)
HSLhsl(276, 61%, 42%)
HSVhsv(276, 75%, 67%)
CMYKcmyk(30.4%, 75.4%, 0%, 32.9%)
CIE-LABlab(35.04, 54.83, -54.44)
CIE-LCHlch(35.04, 77.27, 315.21°)
OKLaboklab(46.46% 0.1187 -0.1546)
OKLCHoklch(46.46% 0.195 307.5)
XYZxyz(15.7848, 8.5184, 39.3328)
Luminance0.0852 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AAB #5EAB2A
analogous
#372AAB #772AAB #AB2A9F
triadic
#772AAB #AB772A #2AAB77
tetradic
#772AAB #AB372A #5EAB2A #2A9FAB
square
#772AAB #AB372A #5EAB2A #2A9FAB
split-complementary
#772AAB #9FAB2A #2AAB37
monochromatic
#331249 #551E7A #772AAB #9742D1 #B273DD

Accessibility & contrast

On white

7.77
#772AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#772AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AAB
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AAB#FFFFFF#000000##FFFFFF
##772AAB1.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0053A8
Tritanopia (blue-blind)
#6E4969
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #772aab;
/* rgb */ color: rgb(119, 42, 171);
/* oklch */ color: oklch(46.5% 0.195 307.5);
Tailwind
colors: {
  custom: {
    50: '#a36cc5',
    500: '#772aab',
    950: '#000000',
  },
}
SCSS
$custom: #772aab;
$custom-light: #a36cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#772aab",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 275.814,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46462,
    "c": 0.19494,
    "h": 307.5
  },
  "luminance": 0.08518
}

Semantic roles & 50–950 ramp

primary
#772AAB
secondary
#90C46D
accent
#E44484
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #772AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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