#772CA7#772CA7

#772CA7 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.4% C 0.189 H 308.5°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#772CA7
RGBrgb(119, 44, 167)
HSLhsl(277, 58%, 41%)
HSVhsv(277, 74%, 65%)
CMYKcmyk(28.7%, 73.7%, 0%, 34.5%)
CIE-LABlab(35.03, 53.11, -52.06)
CIE-LCHlch(35.03, 74.37, 315.57°)
OKLaboklab(46.36% 0.1175 -0.1477)
OKLCHoklch(46.36% 0.189 308.5)
XYZxyz(15.4820, 8.5136, 37.3794)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772CA7 #5CA72C
analogous
#392CA7 #772CA7 #A72C9A
triadic
#772CA7 #A7772C #2CA777
tetradic
#772CA7 #A7392C #5CA72C #2C9AA7
square
#772CA7 #A7392C #5CA72C #2C9AA7
split-complementary
#772CA7 #9AA72C #2CA739
monochromatic
#321246 #541F77 #772CA7 #9743CD #B273DA

Accessibility & contrast

On white

7.77
#772CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #772CA7
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772CA7#FFFFFF#000000##FFFFFF
##772CA71.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AA
Deuteranopia (green-blind)
#0453A4
Tritanopia (blue-blind)
#704967
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #772ca7;
/* rgb */ color: rgb(119, 44, 167);
/* oklch */ color: oklch(46.4% 0.189 308.5);
Tailwind
colors: {
  custom: {
    50: '#a36cc2',
    500: '#772ca7',
    950: '#000000',
  },
}
SCSS
$custom: #772ca7;
$custom-light: #a36cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#772ca7",
  "rgb": {
    "r": 119,
    "g": 44,
    "b": 167
  },
  "hsl": {
    "h": 276.585,
    "s": 58.294,
    "l": 41.373
  },
  "oklch": {
    "l": 0.46361,
    "c": 0.18871,
    "h": 308.5
  },
  "luminance": 0.08513
}

Semantic roles & 50–950 ramp

primary
#772CA7
secondary
#8EC26D
accent
#E24683
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #772CA7

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

Preview Lab → · Contrast checker → · Palette generator →

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