#772EA4#772EA4

#772EA4 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.183 H 309.2°. Best body text is #FFFFFF at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#772EA4
RGBrgb(119, 46, 164)
HSLhsl(277, 56%, 41%)
HSVhsv(277, 72%, 64%)
CMYKcmyk(27.4%, 72%, 0%, 35.7%)
CIE-LABlab(35.12, 51.57, -50.12)
CIE-LCHlch(35.12, 71.91, 315.82°)
OKLaboklab(46.35% 0.116 -0.142)
OKLCHoklch(46.35% 0.183 309.2)
XYZxyz(15.2842, 8.5566, 35.9612)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772EA4 #5BA42E
analogous
#3C2EA4 #772EA4 #A42E96
triadic
#772EA4 #A4772E #2EA477
tetradic
#772EA4 #A43C2E #5BA42E #2E96A4
square
#772EA4 #A43C2E #5BA42E #2E96A4
split-complementary
#772EA4 #96A42E #2EA43C
monochromatic
#321344 #542174 #772EA4 #9845CB #B274D8

Accessibility & contrast

On white

7.75
#772EA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#772EA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772EA4
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772EA4#FFFFFF#000000##FFFFFF
##772EA41.007.752.717.75
#FFFFFF7.751.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1354A1
Tritanopia (blue-blind)
#704966
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #772ea4;
/* rgb */ color: rgb(119, 46, 164);
/* oklch */ color: oklch(46.4% 0.183 309.2);
Tailwind
colors: {
  custom: {
    50: '#a26dc0',
    500: '#772ea4',
    950: '#000000',
  },
}
SCSS
$custom: #772ea4;
$custom-light: #a26dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#772ea4",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 277.119,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.46352,
    "c": 0.1833,
    "h": 309.2
  },
  "luminance": 0.08556
}

Semantic roles & 50–950 ramp

primary
#772EA4
secondary
#8DC06E
accent
#DF4882
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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