#772E9D#772E9D

#772E9D is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.176 H 311.5°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#772E9D
RGBrgb(119, 46, 157)
HSLhsl(279, 55%, 40%)
HSVhsv(279, 71%, 62%)
CMYKcmyk(24.2%, 70.7%, 0%, 38.4%)
CIE-LABlab(34.62, 50.01, -46.69)
CIE-LCHlch(34.62, 68.41, 316.97°)
OKLaboklab(45.84% 0.1169 -0.1319)
OKLCHoklch(45.84% 0.176 311.5)
XYZxyz(14.6694, 8.3106, 32.7231)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772E9D #549D2E
analogous
#3F2E9D #772E9D #9D2E8C
triadic
#772E9D #9D772E #2E9D77
tetradic
#772E9D #9D3F2E #549D2E #2E8C9D
square
#772E9D #9D3F2E #549D2E #2E8C9D
split-complementary
#772E9D #8C9D2E #2E9D3F
monochromatic
#2F123E #53206E #772E9D #9941C7 #B370D5

Accessibility & contrast

On white

7.89
#772E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#772E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772E9D
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772E9D#FFFFFF#000000##FFFFFF
##772E9D1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA0
Deuteranopia (green-blind)
#20539B
Tritanopia (blue-blind)
#724662
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772e9d;
/* rgb */ color: rgb(119, 46, 157);
/* oklch */ color: oklch(45.8% 0.176 311.5);
Tailwind
colors: {
  custom: {
    50: '#a26dbb',
    500: '#772e9d',
    950: '#000000',
  },
}
SCSS
$custom: #772e9d;
$custom-light: #a26dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#772e9d",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 279.459,
    "s": 54.68,
    "l": 39.804
  },
  "oklch": {
    "l": 0.45843,
    "c": 0.17621,
    "h": 311.5
  },
  "luminance": 0.0831
}

Semantic roles & 50–950 ramp

primary
#772E9D
secondary
#86BD6A
accent
#DE4A7D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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