#772A8B#772A8B

#772A8B is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.164 H 318.6°. Best body text is #FFFFFF at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#772A8B
RGBrgb(119, 42, 139)
HSLhsl(288, 54%, 35%)
HSVhsv(288, 70%, 55%)
CMYKcmyk(14.4%, 69.8%, 0%, 45.5%)
CIE-LABlab(32.79, 47.93, -38.61)
CIE-LCHlch(32.79, 61.55, 321.14°)
OKLaboklab(44.15% 0.1228 -0.1082)
OKLCHoklch(44.15% 0.164 318.6)
XYZxyz(13.0953, 7.4425, 25.1679)
Luminance0.0744 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772A8B #3E8B2A
analogous
#462A8B #772A8B #8B2A6E
triadic
#772A8B #8B772A #2A8B77
tetradic
#772A8B #8B462A #3E8B2A #2A6E8B
square
#772A8B #8B462A #3E8B2A #2A6E8B
split-complementary
#772A8B #6E8B2A #2A8B46
monochromatic
#270E2D #4F1C5C #772A8B #9F38BA #B860CF

Accessibility & contrast

On white

8.44
#772A8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#772A8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772A8B
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772A8B#FFFFFF#000000##FFFFFF
##772A8B1.008.442.498.44
#FFFFFF8.441.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#2F5089
Tritanopia (blue-blind)
#773C57
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #772a8b;
/* rgb */ color: rgb(119, 42, 139);
/* oklch */ color: oklch(44.2% 0.164 318.6);
Tailwind
colors: {
  custom: {
    50: '#a16aad',
    500: '#772a8b',
    950: '#000000',
  },
}
SCSS
$custom: #772a8b;
$custom-light: #a16aad;
$custom-dark: #000000;
JSON
{
  "hex": "#772a8b",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 139
  },
  "hsl": {
    "h": 287.629,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44152,
    "c": 0.16367,
    "h": 318.6
  },
  "luminance": 0.07442
}

Semantic roles & 50–950 ramp

primary
#772A8B
secondary
#6EB55C
accent
#DD4B69
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #772A8B

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

Preview Lab → · Contrast checker → · Palette generator →

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