#772AB1#772AB1

#772AB1 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.201 H 305.8°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#772AB1
RGBrgb(119, 42, 177)
HSLhsl(274, 62%, 43%)
HSVhsv(274, 76%, 69%)
CMYKcmyk(32.8%, 76.3%, 0%, 30.6%)
CIE-LABlab(35.50, 56.19, -57.27)
CIE-LCHlch(35.50, 80.23, 314.46°)
OKLaboklab(46.93% 0.1174 -0.163)
OKLCHoklch(46.93% 0.201 305.8)
XYZxyz(16.3698, 8.7523, 42.4134)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AB1 #64B12A
analogous
#332AB1 #772AB1 #B12AA7
triadic
#772AB1 #B1772A #2AB177
tetradic
#772AB1 #B1332A #64B12A #2AA7B1
square
#772AB1 #B1332A #64B12A #2AA7B1
split-complementary
#772AB1 #A7B12A #2AB133
monochromatic
#34134E #561E80 #772AB1 #9645D3 #B277DF

Accessibility & contrast

On white

7.64
#772AB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#772AB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AB1
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AB1#FFFFFF#000000##FFFFFF
##772AB11.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B5
Deuteranopia (green-blind)
#0054AE
Tritanopia (blue-blind)
#6C4C6C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #772ab1;
/* rgb */ color: rgb(119, 42, 177);
/* oklch */ color: oklch(46.9% 0.201 305.8);
Tailwind
colors: {
  custom: {
    50: '#a46cc9',
    500: '#772ab1',
    950: '#000000',
  },
}
SCSS
$custom: #772ab1;
$custom-light: #a46cc9;
$custom-dark: #000000;
JSON
{
  "hex": "#772ab1",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 177
  },
  "hsl": {
    "h": 274.222,
    "s": 61.644,
    "l": 42.941
  },
  "oklch": {
    "l": 0.46933,
    "c": 0.20085,
    "h": 305.8
  },
  "luminance": 0.08752
}

Semantic roles & 50–950 ramp

primary
#772AB1
secondary
#95C670
accent
#E54389
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #772AB1

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

Preview Lab → · Contrast checker → · Palette generator →

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