#772BA6#772BA6

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

Color values

HEX#772BA6
RGBrgb(119, 43, 166)
HSLhsl(277, 59%, 41%)
HSVhsv(277, 74%, 65%)
CMYKcmyk(28.3%, 74.1%, 0%, 34.9%)
CIE-LABlab(34.81, 53.30, -51.82)
CIE-LCHlch(34.81, 74.34, 315.81°)
OKLaboklab(46.18% 0.1187 -0.1469)
OKLCHoklch(46.18% 0.189 308.9)
XYZxyz(15.3532, 8.4031, 36.8822)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772BA6 #5AA62B
analogous
#392BA6 #772BA6 #A62B97
triadic
#772BA6 #A6772B #2BA677
tetradic
#772BA6 #A6392B #5AA62B #2B97A6
square
#772BA6 #A6392B #5AA62B #2B97A6
split-complementary
#772BA6 #97A62B #2BA639
monochromatic
#311245 #541E75 #772BA6 #9841CE #B271DA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##772BA6#FFFFFF#000000##FFFFFF
##772BA61.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)
#004FA9
Deuteranopia (green-blind)
#0553A3
Tritanopia (blue-blind)
#704866
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #772ba6;
/* rgb */ color: rgb(119, 43, 166);
/* oklch */ color: oklch(46.2% 0.189 308.9);
Tailwind
colors: {
  custom: {
    50: '#a36cc1',
    500: '#772ba6',
    950: '#000000',
  },
}
SCSS
$custom: #772ba6;
$custom-light: #a36cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#772ba6",
  "rgb": {
    "r": 119,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 277.073,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4618,
    "c": 0.18888,
    "h": 308.9
  },
  "luminance": 0.08403
}

Semantic roles & 50–950 ramp

primary
#772BA6
secondary
#8CC16B
accent
#E24681
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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