#772EA6#772EA6

#772EA6 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.5% C 0.185 H 308.6°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#772EA6
RGBrgb(119, 46, 166)
HSLhsl(277, 57%, 42%)
HSVhsv(277, 72%, 65%)
CMYKcmyk(28.3%, 72.3%, 0%, 34.9%)
CIE-LABlab(35.26, 52.02, -51.08)
CIE-LCHlch(35.26, 72.91, 315.52°)
OKLaboklab(46.5% 0.1157 -0.1448)
OKLCHoklch(46.5% 0.185 308.6)
XYZxyz(15.4663, 8.6294, 36.9199)
Luminance0.0863 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772EA6 #5DA62E
analogous
#3B2EA6 #772EA6 #A62E99
triadic
#772EA6 #A6772E #2EA677
tetradic
#772EA6 #A63B2E #5DA62E #2E99A6
square
#772EA6 #A63B2E #5DA62E #2E99A6
split-complementary
#772EA6 #99A62E #2EA63B
monochromatic
#321346 #552176 #772EA6 #9746CC #B276D9

Accessibility & contrast

On white

7.70
#772EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#772EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772EA6
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772EA6#FFFFFF#000000##FFFFFF
##772EA61.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#0E54A3
Tritanopia (blue-blind)
#704967
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #772ea6;
/* rgb */ color: rgb(119, 46, 166);
/* oklch */ color: oklch(46.5% 0.185 308.6);
Tailwind
colors: {
  custom: {
    50: '#a36dc1',
    500: '#772ea6',
    950: '#000000',
  },
}
SCSS
$custom: #772ea6;
$custom-light: #a36dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#772ea6",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 276.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46501,
    "c": 0.18533,
    "h": 308.6
  },
  "luminance": 0.08629
}

Semantic roles & 50–950 ramp

primary
#772EA6
secondary
#8FC16F
accent
#E04883
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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