#772EA5#772EA5

#772EA5 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.4% C 0.184 H 308.9°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#772EA5
RGBrgb(119, 46, 165)
HSLhsl(277, 56%, 41%)
HSVhsv(277, 72%, 65%)
CMYKcmyk(27.9%, 72.1%, 0%, 35.3%)
CIE-LABlab(35.19, 51.80, -50.60)
CIE-LCHlch(35.19, 72.41, 315.67°)
OKLaboklab(46.43% 0.1158 -0.1434)
OKLCHoklch(46.43% 0.184 308.9)
XYZxyz(15.3749, 8.5928, 36.4386)
Luminance0.0859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772EA5 #5CA52E
analogous
#3C2EA5 #772EA5 #A52E98
triadic
#772EA5 #A5772E #2EA577
tetradic
#772EA5 #A53C2E #5CA52E #2E98A5
square
#772EA5 #A53C2E #5CA52E #2E98A5
split-complementary
#772EA5 #98A52E #2EA53C
monochromatic
#321345 #542175 #772EA5 #9745CB #B275D8

Accessibility & contrast

On white

7.72
#772EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#772EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772EA5
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772EA5#FFFFFF#000000##FFFFFF
##772EA51.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A8
Deuteranopia (green-blind)
#1154A2
Tritanopia (blue-blind)
#704966
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #772ea5;
/* rgb */ color: rgb(119, 46, 165);
/* oklch */ color: oklch(46.4% 0.184 308.9);
Tailwind
colors: {
  custom: {
    50: '#a36dc0',
    500: '#772ea5',
    950: '#000000',
  },
}
SCSS
$custom: #772ea5;
$custom-light: #a36dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#772ea5",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 276.807,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46427,
    "c": 0.18432,
    "h": 308.9
  },
  "luminance": 0.08593
}

Semantic roles & 50–950 ramp

primary
#772EA5
secondary
#8EC06F
accent
#E04883
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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