#772EA2#772EA2

#772EA2 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.2% C 0.181 H 309.9°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#772EA2
RGBrgb(119, 46, 162)
HSLhsl(278, 56%, 41%)
HSVhsv(278, 72%, 64%)
CMYKcmyk(26.5%, 71.6%, 0%, 36.5%)
CIE-LABlab(34.97, 51.12, -49.14)
CIE-LCHlch(34.97, 70.91, 316.13°)
OKLaboklab(46.21% 0.1162 -0.1391)
OKLCHoklch(46.21% 0.181 309.9)
XYZxyz(15.1050, 8.4849, 35.0174)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772EA2 #59A22E
analogous
#3D2EA2 #772EA2 #A22E93
triadic
#772EA2 #A2772E #2EA277
tetradic
#772EA2 #A23D2E #59A22E #2E93A2
square
#772EA2 #A23D2E #59A22E #2E93A2
split-complementary
#772EA2 #93A22E #2EA23D
monochromatic
#311343 #542072 #772EA2 #9843CA #B273D7

Accessibility & contrast

On white

7.79
#772EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#772EA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772EA2
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772EA2#FFFFFF#000000##FFFFFF
##772EA21.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA5
Deuteranopia (green-blind)
#18539F
Tritanopia (blue-blind)
#714865
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #772ea2;
/* rgb */ color: rgb(119, 46, 162);
/* oklch */ color: oklch(46.2% 0.181 309.9);
Tailwind
colors: {
  custom: {
    50: '#a26dbe',
    500: '#772ea2',
    950: '#000000',
  },
}
SCSS
$custom: #772ea2;
$custom-light: #a26dbe;
$custom-dark: #000000;
JSON
{
  "hex": "#772ea2",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 277.759,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.46205,
    "c": 0.18127,
    "h": 309.9
  },
  "luminance": 0.08485
}

Semantic roles & 50–950 ramp

primary
#772EA2
secondary
#8BBF6D
accent
#DF4980
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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