#772CA2#772CA2

#772CA2 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 46.0% C 0.184 H 310.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#772CA2
RGBrgb(119, 44, 162)
HSLhsl(278, 57%, 40%)
HSVhsv(278, 73%, 64%)
CMYKcmyk(26.5%, 72.8%, 0%, 36.5%)
CIE-LABlab(34.67, 51.99, -49.64)
CIE-LCHlch(34.67, 71.88, 316.32°)
OKLaboklab(45.99% 0.1183 -0.1405)
OKLCHoklch(45.99% 0.184 310.1)
XYZxyz(15.0287, 8.3323, 34.9920)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772CA2 #57A22C
analogous
#3C2CA2 #772CA2 #A22C92
triadic
#772CA2 #A2772C #2CA277
tetradic
#772CA2 #A23C2C #57A22C #2C92A2
square
#772CA2 #A23C2C #57A22C #2C92A2
split-complementary
#772CA2 #92A22C #2CA23C
monochromatic
#301242 #541F72 #772CA2 #9840CB #B270D8

Accessibility & contrast

On white

7.88
#772CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#772CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772CA2
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772CA2#FFFFFF#000000##FFFFFF
##772CA21.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA5
Deuteranopia (green-blind)
#14539F
Tritanopia (blue-blind)
#714764
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772ca2;
/* rgb */ color: rgb(119, 44, 162);
/* oklch */ color: oklch(46.0% 0.184 310.1);
Tailwind
colors: {
  custom: {
    50: '#a26cbe',
    500: '#772ca2',
    950: '#000000',
  },
}
SCSS
$custom: #772ca2;
$custom-light: #a26cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#772ca2",
  "rgb": {
    "r": 119,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 278.136,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.45987,
    "c": 0.18372,
    "h": 310.1
  },
  "luminance": 0.08332
}

Semantic roles & 50–950 ramp

primary
#772CA2
secondary
#89BF6A
accent
#E1477F
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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