#772BAB#772BAB

#772BAB is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.6% C 0.194 H 307.4°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#772BAB
RGBrgb(119, 43, 171)
HSLhsl(276, 60%, 42%)
HSVhsv(276, 75%, 67%)
CMYKcmyk(30.4%, 74.9%, 0%, 32.9%)
CIE-LABlab(35.18, 54.43, -54.21)
CIE-LCHlch(35.18, 76.81, 315.12°)
OKLaboklab(46.56% 0.1178 -0.154)
OKLCHoklch(46.56% 0.194 307.4)
XYZxyz(15.8207, 8.5902, 39.3448)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772BAB #5FAB2B
analogous
#372BAB #772BAB #AB2B9F
triadic
#772BAB #AB772B #2BAB77
tetradic
#772BAB #AB372B #5FAB2B #2B9FAB
square
#772BAB #AB372B #5FAB2B #2B9FAB
split-complementary
#772BAB #9FAB2B #2BAB37
monochromatic
#331249 #551F7A #772BAB #9743D0 #B274DC

Accessibility & contrast

On white

7.73
#772BAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#772BAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772BAB
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772BAB#FFFFFF#000000##FFFFFF
##772BAB1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #772bab;
/* rgb */ color: rgb(119, 43, 171);
/* oklch */ color: oklch(46.6% 0.194 307.4);
Tailwind
colors: {
  custom: {
    50: '#a36cc5',
    500: '#772bab',
    950: '#000000',
  },
}
SCSS
$custom: #772bab;
$custom-light: #a36cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#772bab",
  "rgb": {
    "r": 119,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 275.625,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46563,
    "c": 0.19384,
    "h": 307.4
  },
  "luminance": 0.0859
}

Semantic roles & 50–950 ramp

primary
#772BAB
secondary
#91C46E
accent
#E34585
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #772BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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