#772D9A#772D9A

#772D9A is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.5% C 0.174 H 312.7°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#772D9A
RGBrgb(119, 45, 154)
HSLhsl(281, 55%, 39%)
HSVhsv(281, 71%, 60%)
CMYKcmyk(22.7%, 70.8%, 0%, 39.6%)
CIE-LABlab(34.26, 49.79, -45.46)
CIE-LCHlch(34.26, 67.42, 317.61°)
OKLaboklab(45.52% 0.1183 -0.1283)
OKLCHoklch(45.52% 0.174 312.7)
XYZxyz(14.3778, 8.1322, 31.3779)
Luminance0.0813 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772D9A #509A2D
analogous
#412D9A #772D9A #9A2D87
triadic
#772D9A #9A772D #2D9A77
tetradic
#772D9A #9A412D #509A2D #2D879A
square
#772D9A #9A412D #509A2D #2D879A
split-complementary
#772D9A #879A2D #2D9A41
monochromatic
#2E113B #521F6B #772D9A #9B3EC7 #B36DD4

Accessibility & contrast

On white

8.00
#772D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #772D9A
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772D9A#FFFFFF#000000##FFFFFF
##772D9A1.008.002.638.00
#FFFFFF8.001.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#235298
Tritanopia (blue-blind)
#734460
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772d9a;
/* rgb */ color: rgb(119, 45, 154);
/* oklch */ color: oklch(45.5% 0.174 312.7);
Tailwind
colors: {
  custom: {
    50: '#a26cb8',
    500: '#772d9a',
    950: '#000000',
  },
}
SCSS
$custom: #772d9a;
$custom-light: #a26cb8;
$custom-dark: #000000;
JSON
{
  "hex": "#772d9a",
  "rgb": {
    "r": 119,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 280.734,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45517,
    "c": 0.17447,
    "h": 312.7
  },
  "luminance": 0.08132
}

Semantic roles & 50–950 ramp

primary
#772D9A
secondary
#82BB67
accent
#DE4A79
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #772D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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