#772F9B#772F9B

#772F9B is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.8% C 0.173 H 312.1°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#772F9B
RGBrgb(119, 47, 155)
HSLhsl(280, 53%, 40%)
HSVhsv(280, 70%, 61%)
CMYKcmyk(23.2%, 69.7%, 0%, 39.2%)
CIE-LABlab(34.64, 49.11, -45.44)
CIE-LCHlch(34.64, 66.91, 317.23°)
OKLaboklab(45.82% 0.116 -0.1282)
OKLCHoklch(45.82% 0.173 312.1)
XYZxyz(14.5396, 8.3219, 31.8444)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772F9B #539B2F
analogous
#412F9B #772F9B #9B2F89
triadic
#772F9B #9B772F #2F9B77
tetradic
#772F9B #9B412F #539B2F #2F899B
square
#772F9B #9B412F #539B2F #2F899B
split-complementary
#772F9B #899B2F #2F9B41
monochromatic
#2F133D #53216C #772F9B #9A42C6 #B371D4

Accessibility & contrast

On white

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

On black

2.66
#772F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##772F9B#FFFFFF#000000##FFFFFF
##772F9B1.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9E
Deuteranopia (green-blind)
#245399
Tritanopia (blue-blind)
#734661
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772f9b;
/* rgb */ color: rgb(119, 47, 155);
/* oklch */ color: oklch(45.8% 0.173 312.1);
Tailwind
colors: {
  custom: {
    50: '#a26db9',
    500: '#772f9b',
    950: '#000000',
  },
}
SCSS
$custom: #772f9b;
$custom-light: #a26db9;
$custom-dark: #000000;
JSON
{
  "hex": "#772f9b",
  "rgb": {
    "r": 119,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 280,
    "s": 53.465,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45816,
    "c": 0.17289,
    "h": 312.1
  },
  "luminance": 0.08322
}

Semantic roles & 50–950 ramp

primary
#772F9B
secondary
#85BB6A
accent
#DD4B7C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #772F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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