#772EA7#772EA7

#772EA7 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.6% C 0.186 H 308.3°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#772EA7
RGBrgb(119, 46, 167)
HSLhsl(276, 57%, 42%)
HSVhsv(276, 72%, 65%)
CMYKcmyk(28.7%, 72.5%, 0%, 34.5%)
CIE-LABlab(35.33, 52.25, -51.57)
CIE-LCHlch(35.33, 73.41, 315.38°)
OKLaboklab(46.58% 0.1155 -0.1462)
OKLCHoklch(46.58% 0.186 308.3)
XYZxyz(15.5584, 8.6662, 37.4049)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772EA7 #5EA72E
analogous
#3A2EA7 #772EA7 #A72E9B
triadic
#772EA7 #A7772E #2EA777
tetradic
#772EA7 #A73A2E #5EA72E #2E9BA7
square
#772EA7 #A73A2E #5EA72E #2E9BA7
split-complementary
#772EA7 #9BA72E #2EA73A
monochromatic
#331447 #552177 #772EA7 #9746CC #B276D9

Accessibility & contrast

On white

7.68
#772EA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #772EA7
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772EA7#FFFFFF#000000##FFFFFF
##772EA71.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0A54A4
Tritanopia (blue-blind)
#6F4A68
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #772ea7;
/* rgb */ color: rgb(119, 46, 167);
/* oklch */ color: oklch(46.6% 0.186 308.3);
Tailwind
colors: {
  custom: {
    50: '#a36dc2',
    500: '#772ea7',
    950: '#000000',
  },
}
SCSS
$custom: #772ea7;
$custom-light: #a36dc2;
$custom-dark: #000000;
JSON
{
  "hex": "#772ea7",
  "rgb": {
    "r": 119,
    "g": 46,
    "b": 167
  },
  "hsl": {
    "h": 276.198,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46576,
    "c": 0.18634,
    "h": 308.3
  },
  "luminance": 0.08666
}

Semantic roles & 50–950 ramp

primary
#772EA7
secondary
#90C170
accent
#E04884
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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