#772A8E#772A8E

#772A8E is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.4% C 0.167 H 317.4°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#772A8E
RGBrgb(119, 42, 142)
HSLhsl(286, 54%, 36%)
HSVhsv(286, 70%, 56%)
CMYKcmyk(16.2%, 70.4%, 0%, 44.3%)
CIE-LABlab(32.99, 48.54, -40.15)
CIE-LCHlch(32.99, 63.00, 320.40°)
OKLaboklab(44.35% 0.1226 -0.1127)
OKLCHoklch(44.35% 0.167 317.4)
XYZxyz(13.3175, 7.5314, 26.3381)
Luminance0.0753 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772A8E #418E2A
analogous
#452A8E #772A8E #8E2A73
triadic
#772A8E #8E772A #2A8E77
tetradic
#772A8E #8E452A #418E2A #2A738E
square
#772A8E #8E452A #418E2A #2A738E
split-complementary
#772A8E #738E2A #2A8E45
monochromatic
#280E30 #4F1C5F #772A8E #9F38BD #B762D1

Accessibility & contrast

On white

8.38
#772A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#772A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772A8E
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772A8E#FFFFFF#000000##FFFFFF
##772A8E1.008.382.518.38
#FFFFFF8.381.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#2D508C
Tritanopia (blue-blind)
#763D59
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #772a8e;
/* rgb */ color: rgb(119, 42, 142);
/* oklch */ color: oklch(44.4% 0.167 317.4);
Tailwind
colors: {
  custom: {
    50: '#a16ab0',
    500: '#772a8e',
    950: '#000000',
  },
}
SCSS
$custom: #772a8e;
$custom-light: #a16ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#772a8e",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 142
  },
  "hsl": {
    "h": 286.2,
    "s": 54.348,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44353,
    "c": 0.16656,
    "h": 317.4
  },
  "luminance": 0.07531
}

Semantic roles & 50–950 ramp

primary
#772A8E
secondary
#72B65D
accent
#DE4A6C
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #772A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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