#772D9B#772D9B

#772D9B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.6% C 0.175 H 312.3°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#772D9B
RGBrgb(119, 45, 155)
HSLhsl(280, 55%, 39%)
HSVhsv(280, 71%, 61%)
CMYKcmyk(23.2%, 71%, 0%, 39.2%)
CIE-LABlab(34.33, 50.01, -45.95)
CIE-LCHlch(34.33, 67.91, 317.42°)
OKLaboklab(45.59% 0.1182 -0.1297)
OKLCHoklch(45.59% 0.175 312.3)
XYZxyz(14.4615, 8.1657, 31.8183)
Luminance0.0817 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772D9B #519B2D
analogous
#402D9B #772D9B #9B2D88
triadic
#772D9B #9B772D #2D9B77
tetradic
#772D9B #9B402D #519B2D #2D889B
square
#772D9B #9B402D #519B2D #2D889B
split-complementary
#772D9B #889B2D #2D9B40
monochromatic
#2E113C #531F6C #772D9B #9A3EC7 #B36ED5

Accessibility & contrast

On white

7.98
#772D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#772D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772D9B
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772D9B#FFFFFF#000000##FFFFFF
##772D9B1.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9E
Deuteranopia (green-blind)
#225299
Tritanopia (blue-blind)
#734461
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772d9b;
/* rgb */ color: rgb(119, 45, 155);
/* oklch */ color: oklch(45.6% 0.175 312.3);
Tailwind
colors: {
  custom: {
    50: '#a26cb9',
    500: '#772d9b',
    950: '#000000',
  },
}
SCSS
$custom: #772d9b;
$custom-light: #a26cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#772d9b",
  "rgb": {
    "r": 119,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 280.364,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.45588,
    "c": 0.17548,
    "h": 312.3
  },
  "luminance": 0.08165
}

Semantic roles & 50–950 ramp

primary
#772D9B
secondary
#83BC68
accent
#DE497A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #772D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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