#772EA1#772EA1

#772EA1 is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.1% C 0.180 H 310.2°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#772EA1
RGBrgb(119, 46, 161)
HSLhsl(278, 56%, 41%)
HSVhsv(278, 71%, 63%)
CMYKcmyk(26.1%, 71.4%, 0%, 36.9%)
CIE-LABlab(34.90, 50.90, -48.65)
CIE-LCHlch(34.90, 70.41, 316.29°)
OKLaboklab(46.13% 0.1164 -0.1377)
OKLCHoklch(46.13% 0.18 310.2)
XYZxyz(15.0165, 8.4495, 34.5512)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772EA1 #58A12E
analogous
#3D2EA1 #772EA1 #A12E91
triadic
#772EA1 #A1772E #2EA177
tetradic
#772EA1 #A13D2E #58A12E #2E91A1
square
#772EA1 #A13D2E #58A12E #2E91A1
split-complementary
#772EA1 #91A12E #2EA13D
monochromatic
#311342 #542071 #772EA1 #9843C9 #B273D7

Accessibility & contrast

On white

7.81
#772EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#772EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772EA1
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772EA1#FFFFFF#000000##FFFFFF
##772EA11.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FA4
Deuteranopia (green-blind)
#1A539E
Tritanopia (blue-blind)
#714764
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #772ea1;
/* rgb */ color: rgb(119, 46, 161);
/* oklch */ color: oklch(46.1% 0.180 310.2);
Tailwind
colors: {
  custom: {
    50: '#a26dbd',
    500: '#772ea1',
    950: '#000000',
  },
}
SCSS
$custom: #772ea1;
$custom-light: #a26dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#772ea1",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 278.087,
    "s": 55.556,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46132,
    "c": 0.18026,
    "h": 310.2
  },
  "luminance": 0.08449
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #772EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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