#772AA2#772AA2

#772AA2 is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.8% C 0.186 H 310.3°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#772AA2
RGBrgb(119, 42, 162)
HSLhsl(279, 59%, 40%)
HSVhsv(279, 74%, 64%)
CMYKcmyk(26.5%, 74.1%, 0%, 36.5%)
CIE-LABlab(34.37, 52.83, -50.12)
CIE-LCHlch(34.37, 72.82, 316.51°)
OKLaboklab(45.78% 0.1203 -0.1419)
OKLCHoklch(45.78% 0.186 310.3)
XYZxyz(14.9560, 8.1868, 34.9678)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AA2 #55A22A
analogous
#3B2AA2 #772AA2 #A22A91
triadic
#772AA2 #A2772A #2AA277
tetradic
#772AA2 #A23B2A #55A22A #2A91A2
square
#772AA2 #A23B2A #55A22A #2A91A2
split-complementary
#772AA2 #91A22A #2AA23B
monochromatic
#301141 #531D71 #772AA2 #993DCD #B36DD9

Accessibility & contrast

On white

7.96
#772AA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#772AA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AA2
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AA2#FFFFFF#000000##FFFFFF
##772AA21.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#10529F
Tritanopia (blue-blind)
#714664
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772aa2;
/* rgb */ color: rgb(119, 42, 162);
/* oklch */ color: oklch(45.8% 0.186 310.3);
Tailwind
colors: {
  custom: {
    50: '#a36bbe',
    500: '#772aa2',
    950: '#000000',
  },
}
SCSS
$custom: #772aa2;
$custom-light: #a36bbe;
$custom-dark: #000000;
JSON
{
  "hex": "#772aa2",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 162
  },
  "hsl": {
    "h": 278.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.45776,
    "c": 0.18608,
    "h": 310.3
  },
  "luminance": 0.08187
}

Semantic roles & 50–950 ramp

primary
#772AA2
secondary
#87C068
accent
#E2467E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772AA2

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

Preview Lab → · Contrast checker → · Palette generator →

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