#772EA8#772EA8

#772EA8 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.187 H 308.0°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#772EA8
RGBrgb(119, 46, 168)
HSLhsl(276, 57%, 42%)
HSVhsv(276, 73%, 66%)
CMYKcmyk(29.2%, 72.6%, 0%, 34.1%)
CIE-LABlab(35.41, 52.48, -52.05)
CIE-LCHlch(35.41, 73.91, 315.23°)
OKLaboklab(46.65% 0.1154 -0.1476)
OKLCHoklch(46.65% 0.187 308)
XYZxyz(15.6512, 8.7033, 37.8936)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772EA8 #5FA82E
analogous
#3A2EA8 #772EA8 #A82E9C
triadic
#772EA8 #A8772E #2EA877
tetradic
#772EA8 #A83A2E #5FA82E #2E9CA8
square
#772EA8 #A83A2E #5FA82E #2E9CA8
split-complementary
#772EA8 #9CA82E #2EA83A
monochromatic
#331448 #552178 #772EA8 #9747CD #B277DA

Accessibility & contrast

On white

7.66
#772EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#772EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772EA8
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772EA8#FFFFFF#000000##FFFFFF
##772EA81.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AC
Deuteranopia (green-blind)
#0754A5
Tritanopia (blue-blind)
#6F4A68
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #772ea8;
/* rgb */ color: rgb(119, 46, 168);
/* oklch */ color: oklch(46.7% 0.187 308.0);
Tailwind
colors: {
  custom: {
    50: '#a36dc3',
    500: '#772ea8',
    950: '#000000',
  },
}
SCSS
$custom: #772ea8;
$custom-light: #a36dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#772ea8",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 275.902,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46651,
    "c": 0.18736,
    "h": 308
  },
  "luminance": 0.08703
}

Semantic roles & 50–950 ramp

primary
#772EA8
secondary
#91C270
accent
#E04885
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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