#772D8B#772D8B

#772D8B is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.5% C 0.160 H 318.4°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#772D8B
RGBrgb(119, 45, 139)
HSLhsl(287, 51%, 36%)
HSVhsv(287, 68%, 55%)
CMYKcmyk(14.4%, 67.6%, 0%, 45.5%)
CIE-LABlab(33.27, 46.59, -37.85)
CIE-LCHlch(33.27, 60.03, 320.91°)
OKLaboklab(44.5% 0.1193 -0.106)
OKLCHoklch(44.5% 0.16 318.4)
XYZxyz(13.2057, 7.6634, 25.2047)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772D8B #418B2D
analogous
#482D8B #772D8B #8B2D70
triadic
#772D8B #8B772D #2D8B77
tetradic
#772D8B #8B482D #418B2D #2D708B
square
#772D8B #8B482D #418B2D #2D708B
split-complementary
#772D8B #708B2D #2D8B48
monochromatic
#280F2F #4F1E5D #772D8B #9F3CB9 #B765CD

Accessibility & contrast

On white

8.29
#772D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#772D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772D8B
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772D8B#FFFFFF#000000##FFFFFF
##772D8B1.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09498E
Deuteranopia (green-blind)
#325189
Tritanopia (blue-blind)
#773E58
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #772d8b;
/* rgb */ color: rgb(119, 45, 139);
/* oklch */ color: oklch(44.5% 0.160 318.4);
Tailwind
colors: {
  custom: {
    50: '#a16cad',
    500: '#772d8b',
    950: '#000000',
  },
}
SCSS
$custom: #772d8b;
$custom-light: #a16cad;
$custom-dark: #000000;
JSON
{
  "hex": "#772d8b",
  "rgb": {
    "r": 119,
    "g": 45,
    "b": 139
  },
  "hsl": {
    "h": 287.234,
    "s": 51.087,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44496,
    "c": 0.15957,
    "h": 318.4
  },
  "luminance": 0.07663
}

Semantic roles & 50–950 ramp

primary
#772D8B
secondary
#72B460
accent
#DB4D6B
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#0F0710
muted
#7F7A7F

Preview Lab

Preview with #772D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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