#772C8B#772C8B

#772C8B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.4% C 0.161 H 318.5°. Best body text is #FFFFFF at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#772C8B
RGBrgb(119, 44, 139)
HSLhsl(287, 52%, 36%)
HSVhsv(287, 68%, 55%)
CMYKcmyk(14.4%, 68.3%, 0%, 45.5%)
CIE-LABlab(33.11, 47.04, -38.11)
CIE-LCHlch(33.11, 60.54, 320.99°)
OKLaboklab(44.38% 0.1205 -0.1067)
OKLCHoklch(44.38% 0.161 318.5)
XYZxyz(13.1680, 7.5880, 25.1921)
Luminance0.0759 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772C8B #408B2C
analogous
#472C8B #772C8B #8B2C6F
triadic
#772C8B #8B772C #2C8B77
tetradic
#772C8B #8B472C #408B2C #2C6F8B
square
#772C8B #8B472C #408B2C #2C6F8B
split-complementary
#772C8B #6F8B2C #2C8B47
monochromatic
#270F2E #4F1D5D #772C8B #9F3BB9 #B764CE

Accessibility & contrast

On white

8.34
#772C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#772C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772C8B
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772C8B#FFFFFF#000000##FFFFFF
##772C8B1.008.342.528.34
#FFFFFF8.341.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06498E
Deuteranopia (green-blind)
#315089
Tritanopia (blue-blind)
#773D58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #772c8b;
/* rgb */ color: rgb(119, 44, 139);
/* oklch */ color: oklch(44.4% 0.161 318.5);
Tailwind
colors: {
  custom: {
    50: '#a16bad',
    500: '#772c8b',
    950: '#000000',
  },
}
SCSS
$custom: #772c8b;
$custom-light: #a16bad;
$custom-dark: #000000;
JSON
{
  "hex": "#772c8b",
  "rgb": {
    "r": 119,
    "g": 44,
    "b": 139
  },
  "hsl": {
    "h": 287.368,
    "s": 51.913,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44379,
    "c": 0.16096,
    "h": 318.5
  },
  "luminance": 0.07587
}

Semantic roles & 50–950 ramp

primary
#772C8B
secondary
#71B45F
accent
#DB4C6B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #772C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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