#772A9E#772A9E

#772A9E is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.5% C 0.182 H 311.6°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#772A9E
RGBrgb(119, 42, 158)
HSLhsl(280, 58%, 39%)
HSVhsv(280, 73%, 62%)
CMYKcmyk(24.7%, 73.4%, 0%, 38%)
CIE-LABlab(34.08, 51.95, -48.17)
CIE-LCHlch(34.08, 70.84, 317.17°)
OKLaboklab(45.48% 0.1209 -0.1362)
OKLCHoklch(45.48% 0.182 311.6)
XYZxyz(14.6061, 8.0469, 33.1249)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772A9E #519E2A
analogous
#3D2A9E #772A9E #9E2A8B
triadic
#772A9E #9E772A #2A9E77
tetradic
#772A9E #9E3D2A #519E2A #2A8B9E
square
#772A9E #9E3D2A #519E2A #2A8B9E
split-complementary
#772A9E #8B9E2A #2A9E3D
monochromatic
#2E103D #531D6E #772A9E #9A3ACB #B36BD8

Accessibility & contrast

On white

8.05
#772A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#772A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772A9E
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772A9E#FFFFFF#000000##FFFFFF
##772A9E1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#19529B
Tritanopia (blue-blind)
#724461
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #772a9e;
/* rgb */ color: rgb(119, 42, 158);
/* oklch */ color: oklch(45.5% 0.182 311.6);
Tailwind
colors: {
  custom: {
    50: '#a26bbb',
    500: '#772a9e',
    950: '#000000',
  },
}
SCSS
$custom: #772a9e;
$custom-light: #a26bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#772a9e",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 158
  },
  "hsl": {
    "h": 279.828,
    "s": 58,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4548,
    "c": 0.18215,
    "h": 311.6
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

primary
#772A9E
secondary
#83BE66
accent
#E1477B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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