#772F9D#772F9D

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

Color values

HEX#772F9D
RGBrgb(119, 47, 157)
HSLhsl(279, 54%, 40%)
HSVhsv(279, 70%, 62%)
CMYKcmyk(24.2%, 70.1%, 0%, 38.4%)
CIE-LABlab(34.78, 49.56, -46.43)
CIE-LCHlch(34.78, 67.91, 316.87°)
OKLaboklab(45.96% 0.1158 -0.1311)
OKLCHoklch(45.96% 0.175 311.4)
XYZxyz(14.7089, 8.3897, 32.7363)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772F9D #559D2F
analogous
#402F9D #772F9D #9D2F8C
triadic
#772F9D #9D772F #2F9D77
tetradic
#772F9D #9D402F #559D2F #2F8C9D
square
#772F9D #9D402F #559D2F #2F8C9D
split-complementary
#772F9D #8C9D2F #2F9D40
monochromatic
#30133F #53216E #772F9D #9943C7 #B372D5

Accessibility & contrast

On white

7.84
#772F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #772F9D
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772F9D#FFFFFF#000000##FFFFFF
##772F9D1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #772f9d;
/* rgb */ color: rgb(119, 47, 157);
/* oklch */ color: oklch(46.0% 0.175 311.4);
Tailwind
colors: {
  custom: {
    50: '#a26ebb',
    500: '#772f9d',
    950: '#000000',
  },
}
SCSS
$custom: #772f9d;
$custom-light: #a26ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#772f9d",
  "rgb": {
    "r": 119,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 279.273,
    "s": 53.922,
    "l": 40
  },
  "oklch": {
    "l": 0.45958,
    "c": 0.17492,
    "h": 311.4
  },
  "luminance": 0.08389
}

Semantic roles & 50–950 ramp

primary
#772F9D
secondary
#87BC6B
accent
#DD4B7D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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