#772E9B#772E9B

#772E9B is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.174 H 312.2°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#772E9B
RGBrgb(119, 46, 155)
HSLhsl(280, 54%, 39%)
HSVhsv(280, 70%, 61%)
CMYKcmyk(23.2%, 70.3%, 0%, 39.2%)
CIE-LABlab(34.48, 49.56, -45.70)
CIE-LCHlch(34.48, 67.41, 317.32°)
OKLaboklab(45.7% 0.1171 -0.129)
OKLCHoklch(45.7% 0.174 312.2)
XYZxyz(14.5001, 8.2429, 31.8312)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772E9B #529B2E
analogous
#402E9B #772E9B #9B2E89
triadic
#772E9B #9B772E #2E9B77
tetradic
#772E9B #9B402E #529B2E #2E899B
square
#772E9B #9B402E #529B2E #2E899B
split-complementary
#772E9B #899B2E #2E9B40
monochromatic
#2F123D #53206C #772E9B #9A40C6 #B36FD4

Accessibility & contrast

On white

7.93
#772E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #772E9B
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772E9B#FFFFFF#000000##FFFFFF
##772E9B1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #772e9b;
/* rgb */ color: rgb(119, 46, 155);
/* oklch */ color: oklch(45.7% 0.174 312.2);
Tailwind
colors: {
  custom: {
    50: '#a26db9',
    500: '#772e9b',
    950: '#000000',
  },
}
SCSS
$custom: #772e9b;
$custom-light: #a26db9;
$custom-dark: #000000;
JSON
{
  "hex": "#772e9b",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 280.183,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.45701,
    "c": 0.17419,
    "h": 312.2
  },
  "luminance": 0.08242
}

Semantic roles & 50–950 ramp

primary
#772E9B
secondary
#84BC69
accent
#DE4A7B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #772E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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