#772B9B#772B9B

#772B9B is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.178 H 312.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#772B9B
RGBrgb(119, 43, 155)
HSLhsl(281, 57%, 39%)
HSVhsv(281, 72%, 61%)
CMYKcmyk(23.2%, 72.3%, 0%, 39.2%)
CIE-LABlab(34.02, 50.88, -46.45)
CIE-LCHlch(34.02, 68.89, 317.61°)
OKLaboklab(45.37% 0.1203 -0.1312)
OKLCHoklch(45.37% 0.178 312.5)
XYZxyz(14.3870, 8.0167, 31.7935)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772B9B #4F9B2B
analogous
#3F2B9B #772B9B #9B2B87
triadic
#772B9B #9B772B #2B9B77
tetradic
#772B9B #9B3F2B #4F9B2B #2B879B
square
#772B9B #9B3F2B #4F9B2B #2B879B
split-complementary
#772B9B #879B2B #2B9B3F
monochromatic
#2D103B #521E6B #772B9B #9B3BC9 #B36BD6

Accessibility & contrast

On white

8.07
#772B9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#772B9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772B9B
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772B9B#FFFFFF#000000##FFFFFF
##772B9B1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#1F5299
Tritanopia (blue-blind)
#734360
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #772b9b;
/* rgb */ color: rgb(119, 43, 155);
/* oklch */ color: oklch(45.4% 0.178 312.5);
Tailwind
colors: {
  custom: {
    50: '#a26bb9',
    500: '#772b9b',
    950: '#000000',
  },
}
SCSS
$custom: #772b9b;
$custom-light: #a26bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#772b9b",
  "rgb": {
    "r": 119,
    "g": 43,
    "b": 155
  },
  "hsl": {
    "h": 280.714,
    "s": 56.566,
    "l": 38.824
  },
  "oklch": {
    "l": 0.45368,
    "c": 0.17799,
    "h": 312.5
  },
  "luminance": 0.08016
}

Semantic roles & 50–950 ramp

primary
#772B9B
secondary
#81BC65
accent
#E04879
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0711
muted
#7F7A80

Preview Lab

Preview with #772B9B

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

Preview Lab → · Contrast checker → · Palette generator →

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