#772BA7#772BA7

#772BA7 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.3% C 0.190 H 308.6°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#772BA7
RGBrgb(119, 43, 167)
HSLhsl(277, 59%, 41%)
HSVhsv(277, 74%, 65%)
CMYKcmyk(28.7%, 74.3%, 0%, 34.5%)
CIE-LABlab(34.88, 53.53, -52.30)
CIE-LCHlch(34.88, 74.83, 315.67°)
OKLaboklab(46.26% 0.1185 -0.1483)
OKLCHoklch(46.26% 0.19 308.6)
XYZxyz(15.4452, 8.4400, 37.3671)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772BA7 #5BA72B
analogous
#392BA7 #772BA7 #A72B99
triadic
#772BA7 #A7772B #2BA777
tetradic
#772BA7 #A7392B #5BA72B #2B99A7
square
#772BA7 #A7392B #5BA72B #2B99A7
split-complementary
#772BA7 #99A72B #2BA739
monochromatic
#321246 #541E76 #772BA7 #9841CE #B272DB

Accessibility & contrast

On white

7.81
#772BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#772BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772BA7
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772BA7#FFFFFF#000000##FFFFFF
##772BA71.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #772ba7;
/* rgb */ color: rgb(119, 43, 167);
/* oklch */ color: oklch(46.3% 0.190 308.6);
Tailwind
colors: {
  custom: {
    50: '#a36cc2',
    500: '#772ba7',
    950: '#000000',
  },
}
SCSS
$custom: #772ba7;
$custom-light: #a36cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#772ba7",
  "rgb": {
    "r": 119,
    "g": 43,
    "b": 167
  },
  "hsl": {
    "h": 276.774,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46256,
    "c": 0.18987,
    "h": 308.6
  },
  "luminance": 0.0844
}

Semantic roles & 50–950 ramp

primary
#772BA7
secondary
#8DC26C
accent
#E24682
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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