#772A8D#772A8D

#772A8D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.3% C 0.166 H 317.8°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#772A8D
RGBrgb(119, 42, 141)
HSLhsl(287, 54%, 36%)
HSVhsv(287, 70%, 55%)
CMYKcmyk(15.6%, 70.2%, 0%, 44.7%)
CIE-LABlab(32.92, 48.34, -39.64)
CIE-LCHlch(32.92, 62.51, 320.64°)
OKLaboklab(44.29% 0.1227 -0.1112)
OKLCHoklch(44.29% 0.166 317.8)
XYZxyz(13.2428, 7.5015, 25.9445)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772A8D #408D2A
analogous
#462A8D #772A8D #8D2A71
triadic
#772A8D #8D772A #2A8D77
tetradic
#772A8D #8D462A #408D2A #2A718D
square
#772A8D #8D462A #408D2A #2A718D
split-complementary
#772A8D #718D2A #2A8D46
monochromatic
#270E2F #4F1C5E #772A8D #9F38BC #B761D0

Accessibility & contrast

On white

8.40
#772A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#772A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772A8D
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772A8D#FFFFFF#000000##FFFFFF
##772A8D1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004990
Deuteranopia (green-blind)
#2E508B
Tritanopia (blue-blind)
#763D58
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #772a8d;
/* rgb */ color: rgb(119, 42, 141);
/* oklch */ color: oklch(44.3% 0.166 317.8);
Tailwind
colors: {
  custom: {
    50: '#a16aaf',
    500: '#772a8d',
    950: '#000000',
  },
}
SCSS
$custom: #772a8d;
$custom-light: #a16aaf;
$custom-dark: #000000;
JSON
{
  "hex": "#772a8d",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 141
  },
  "hsl": {
    "h": 286.667,
    "s": 54.098,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44286,
    "c": 0.16559,
    "h": 317.8
  },
  "luminance": 0.07501
}

Semantic roles & 50–950 ramp

primary
#772A8D
secondary
#71B65D
accent
#DD4A6B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #772A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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