#771CAB#771CAB

#771CAB is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.3% C 0.208 H 308.6°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#771CAB
RGBrgb(119, 28, 171)
HSLhsl(278, 72%, 39%)
HSVhsv(278, 84%, 67%)
CMYKcmyk(30.4%, 83.6%, 0%, 32.9%)
CIE-LABlab(33.34, 59.77, -57.21)
CIE-LCHlch(33.34, 82.74, 316.25°)
OKLaboklab(45.27% 0.13 -0.1627)
OKLCHoklch(45.27% 0.208 308.6)
XYZxyz(15.3722, 7.6930, 39.1953)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771CAB #50AB1C
analogous
#301CAB #771CAB #AB1C98
triadic
#771CAB #AB771C #1CAB77
tetradic
#771CAB #AB301C #50AB1C #1C98AB
square
#771CAB #AB301C #50AB1C #1C98AB
split-complementary
#771CAB #98AB1C #1CAB30
monochromatic
#2E0B42 #521376 #771CAB #9B28DC #B35DE4

Accessibility & contrast

On white

8.27
#771CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#771CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771CAB
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771CAB#FFFFFF#000000##FFFFFF
##771CAB1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#004FA8
Tritanopia (blue-blind)
#6F4366
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #771cab;
/* rgb */ color: rgb(119, 28, 171);
/* oklch */ color: oklch(45.3% 0.208 308.6);
Tailwind
colors: {
  custom: {
    50: '#a466c5',
    500: '#771cab',
    950: '#000000',
  },
}
SCSS
$custom: #771cab;
$custom-light: #a466c5;
$custom-dark: #000000;
JSON
{
  "hex": "#771cab",
  "rgb": {
    "r": 119,
    "g": 28,
    "b": 171
  },
  "hsl": {
    "h": 278.182,
    "s": 71.859,
    "l": 39.02
  },
  "oklch": {
    "l": 0.45268,
    "c": 0.20825,
    "h": 308.6
  },
  "luminance": 0.07693
}

Semantic roles & 50–950 ramp

primary
#771CAB
secondary
#82C95A
accent
#EF397B
background
#FAF6FC
surface
#F4EBF8
border
#CEC6D1
text
#100613
muted
#7F7A82

Preview Lab

Preview with #771CAB

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

Preview Lab → · Contrast checker → · Palette generator →

#771CAB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva