#772F9E#772F9E

#772F9E is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.176 H 311.1°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#772F9E
RGBrgb(119, 47, 158)
HSLhsl(279, 54%, 40%)
HSVhsv(279, 70%, 62%)
CMYKcmyk(24.7%, 70.3%, 0%, 38%)
CIE-LABlab(34.85, 49.78, -46.92)
CIE-LCHlch(34.85, 68.41, 316.69°)
OKLaboklab(46.03% 0.1157 -0.1326)
OKLCHoklch(46.03% 0.176 311.1)
XYZxyz(14.7947, 8.4239, 33.1877)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772F9E #569E2F
analogous
#402F9E #772F9E #9E2F8D
triadic
#772F9E #9E772F #2F9E77
tetradic
#772F9E #9E402F #569E2F #2F8D9E
square
#772F9E #9E402F #569E2F #2F8D9E
split-complementary
#772F9E #8D9E2F #2F9E40
monochromatic
#301340 #53216F #772F9E #9943C7 #B272D5

Accessibility & contrast

On white

7.82
#772F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#772F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772F9E
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772F9E#FFFFFF#000000##FFFFFF
##772F9E1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA1
Deuteranopia (green-blind)
#20539C
Tritanopia (blue-blind)
#724763
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #772f9e;
/* rgb */ color: rgb(119, 47, 158);
/* oklch */ color: oklch(46.0% 0.176 311.1);
Tailwind
colors: {
  custom: {
    50: '#a26ebb',
    500: '#772f9e',
    950: '#000000',
  },
}
SCSS
$custom: #772f9e;
$custom-light: #a26ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#772f9e",
  "rgb": {
    "r": 119,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 278.919,
    "s": 54.146,
    "l": 40.196
  },
  "oklch": {
    "l": 0.46029,
    "c": 0.17594,
    "h": 311.1
  },
  "luminance": 0.08424
}

Semantic roles & 50–950 ramp

primary
#772F9E
secondary
#88BD6C
accent
#DE4A7E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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