#772D9E#772D9E

#772D9E is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.178 H 311.3°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#772D9E
RGBrgb(119, 45, 158)
HSLhsl(279, 56%, 40%)
HSVhsv(279, 72%, 62%)
CMYKcmyk(24.7%, 71.5%, 0%, 38%)
CIE-LABlab(34.53, 50.67, -47.43)
CIE-LCHlch(34.53, 69.41, 316.89°)
OKLaboklab(45.8% 0.1178 -0.1341)
OKLCHoklch(45.8% 0.178 311.3)
XYZxyz(14.7165, 8.2677, 33.1617)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772D9E #549E2D
analogous
#3F2D9E #772D9E #9E2D8D
triadic
#772D9E #9E772D #2D9E77
tetradic
#772D9E #9E3F2D #549E2D #2D8D9E
square
#772D9E #9E3F2D #549E2D #2D8D9E
split-complementary
#772D9E #8D9E2D #2D9E3F
monochromatic
#2F123F #531F6E #772D9E #9940C9 #B36FD6

Accessibility & contrast

On white

7.91
#772D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#772D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772D9E
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772D9E#FFFFFF#000000##FFFFFF
##772D9E1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#1D539C
Tritanopia (blue-blind)
#724662
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772d9e;
/* rgb */ color: rgb(119, 45, 158);
/* oklch */ color: oklch(45.8% 0.178 311.3);
Tailwind
colors: {
  custom: {
    50: '#a26dbb',
    500: '#772d9e',
    950: '#000000',
  },
}
SCSS
$custom: #772d9e;
$custom-light: #a26dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#772d9e",
  "rgb": {
    "r": 119,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 279.292,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45803,
    "c": 0.17849,
    "h": 311.3
  },
  "luminance": 0.08267
}

Semantic roles & 50–950 ramp

primary
#772D9E
secondary
#86BD69
accent
#DF497D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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