#772AB2#772AB2

#772AB2 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 47.0% C 0.202 H 305.5°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#772AB2
RGBrgb(119, 42, 178)
HSLhsl(274, 62%, 43%)
HSVhsv(274, 76%, 70%)
CMYKcmyk(33.1%, 76.4%, 0%, 30.2%)
CIE-LABlab(35.58, 56.42, -57.73)
CIE-LCHlch(35.58, 80.72, 314.34°)
OKLaboklab(47.01% 0.1172 -0.1643)
OKLCHoklch(47.01% 0.202 305.5)
XYZxyz(16.4698, 8.7923, 42.9403)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#772AB2 #65B22A
analogous
#332AB2 #772AB2 #B22AA9
triadic
#772AB2 #B2772A #2AB277
tetradic
#772AB2 #B2332A #65B22A #2AA9B2
square
#772AB2 #B2332A #65B22A #2AA9B2
split-complementary
#772AB2 #A9B22A #2AB233
monochromatic
#35134F #561E80 #772AB2 #9646D3 #B277DF

Accessibility & contrast

On white

7.61
#772AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#772AB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #772AB2
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##772AB2#FFFFFF#000000##FFFFFF
##772AB21.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0054AF
Tritanopia (blue-blind)
#6C4C6D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #772ab2;
/* rgb */ color: rgb(119, 42, 178);
/* oklch */ color: oklch(47.0% 0.202 305.5);
Tailwind
colors: {
  custom: {
    50: '#a46cca',
    500: '#772ab2',
    950: '#000000',
  },
}
SCSS
$custom: #772ab2;
$custom-light: #a46cca;
$custom-dark: #000000;
JSON
{
  "hex": "#772ab2",
  "rgb": {
    "r": 119,
    "g": 42,
    "b": 178
  },
  "hsl": {
    "h": 273.971,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.47013,
    "c": 0.20185,
    "h": 305.5
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#772AB2
secondary
#96C771
accent
#E54389
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #772AB2

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

Preview Lab → · Contrast checker → · Palette generator →

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