#772C9E#772C9E

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

Color values

HEX#772C9E
RGBrgb(119, 44, 158)
HSLhsl(279, 56%, 40%)
HSVhsv(279, 72%, 62%)
CMYKcmyk(24.7%, 72.2%, 0%, 38%)
CIE-LABlab(34.38, 51.10, -47.68)
CIE-LCHlch(34.38, 69.89, 316.98°)
OKLaboklab(45.69% 0.1189 -0.1348)
OKLCHoklch(45.69% 0.18 311.4)
XYZxyz(14.6788, 8.1923, 33.1491)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772C9E #539E2C
analogous
#3E2C9E #772C9E #9E2C8C
triadic
#772C9E #9E772C #2C9E77
tetradic
#772C9E #9E3E2C #539E2C #2C8C9E
square
#772C9E #9E3E2C #539E2C #2C8C9E
split-complementary
#772C9E #8C9E2C #2C9E3E
monochromatic
#2F113E #531F6E #772C9E #9A3EC9 #B36ED7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##772C9E#FFFFFF#000000##FFFFFF
##772C9E1.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)
#004DA1
Deuteranopia (green-blind)
#1C529C
Tritanopia (blue-blind)
#724562
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772c9e;
/* rgb */ color: rgb(119, 44, 158);
/* oklch */ color: oklch(45.7% 0.180 311.4);
Tailwind
colors: {
  custom: {
    50: '#a26cbb',
    500: '#772c9e',
    950: '#000000',
  },
}
SCSS
$custom: #772c9e;
$custom-light: #a26cbb;
$custom-dark: #000000;
JSON
{
  "hex": "#772c9e",
  "rgb": {
    "r": 119,
    "g": 44,
    "b": 158
  },
  "hsl": {
    "h": 279.474,
    "s": 56.436,
    "l": 39.608
  },
  "oklch": {
    "l": 0.45693,
    "c": 0.17973,
    "h": 311.4
  },
  "luminance": 0.08192
}

Semantic roles & 50–950 ramp

primary
#772C9E
secondary
#85BE68
accent
#E0487C
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772C9E

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

Preview Lab → · Contrast checker → · Palette generator →

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