#772CA1#772CA1

#772CA1 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.9% C 0.183 H 310.4°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#772CA1
RGBrgb(119, 44, 161)
HSLhsl(278, 57%, 40%)
HSVhsv(278, 73%, 63%)
CMYKcmyk(26.1%, 72.7%, 0%, 36.9%)
CIE-LABlab(34.59, 51.77, -49.15)
CIE-LCHlch(34.59, 71.38, 316.48°)
OKLaboklab(45.91% 0.1185 -0.1391)
OKLCHoklch(45.91% 0.183 310.4)
XYZxyz(14.9402, 8.2968, 34.5257)
Luminance0.0830 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772CA1 #56A12C
analogous
#3D2CA1 #772CA1 #A12C90
triadic
#772CA1 #A1772C #2CA177
tetradic
#772CA1 #A13D2C #56A12C #2C90A1
square
#772CA1 #A13D2C #56A12C #2C90A1
split-complementary
#772CA1 #90A12C #2CA13D
monochromatic
#301241 #531F71 #772CA1 #9940CB #B270D8

Accessibility & contrast

On white

7.90
#772CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#772CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772CA1
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772CA1#FFFFFF#000000##FFFFFF
##772CA11.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#16539E
Tritanopia (blue-blind)
#714664
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #772ca1;
/* rgb */ color: rgb(119, 44, 161);
/* oklch */ color: oklch(45.9% 0.183 310.4);
Tailwind
colors: {
  custom: {
    50: '#a26cbe',
    500: '#772ca1',
    950: '#000000',
  },
}
SCSS
$custom: #772ca1;
$custom-light: #a26cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#772ca1",
  "rgb": {
    "r": 119,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 278.462,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.45913,
    "c": 0.18272,
    "h": 310.4
  },
  "luminance": 0.08297
}

Semantic roles & 50–950 ramp

primary
#772CA1
secondary
#88BF6A
accent
#E0477E
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#0F0712
muted
#7F7A81

Preview Lab

Preview with #772CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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