#771A7E#771A7E

#771A7E is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.171 H 324.9°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#771A7E
RGBrgb(119, 26, 126)
HSLhsl(296, 66%, 30%)
HSVhsv(296, 79%, 49%)
CMYKcmyk(5.6%, 79.4%, 0%, 50.6%)
CIE-LABlab(29.83, 51.48, -35.25)
CIE-LCHlch(29.83, 62.39, 325.60°)
OKLaboklab(41.77% 0.1399 -0.0982)
OKLCHoklch(41.77% 0.171 324.9)
XYZxyz(11.7428, 6.1679, 20.3066)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771A7E #217E1A
analogous
#451A7E #771A7E #7E1A53
triadic
#771A7E #7E771A #1A7E77
tetradic
#771A7E #7E451A #217E1A #1A537E
square
#771A7E #7E451A #217E1A #1A537E
split-complementary
#771A7E #537E1A #1A7E45
monochromatic
#180519 #47104B #771A7E #A724B1 #CC3CD7

Accessibility & contrast

On white

9.40
#771A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#771A7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771A7E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771A7E#FFFFFF#000000##FFFFFF
##771A7E1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#304A7C
Tritanopia (blue-blind)
#7A2D4C
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #771a7e;
/* rgb */ color: rgb(119, 26, 126);
/* oklch */ color: oklch(41.8% 0.171 324.9);
Tailwind
colors: {
  custom: {
    50: '#a263a4',
    500: '#771a7e',
    950: '#000000',
  },
}
SCSS
$custom: #771a7e;
$custom-light: #a263a4;
$custom-dark: #000000;
JSON
{
  "hex": "#771a7e",
  "rgb": {
    "r": 119,
    "g": 26,
    "b": 126
  },
  "hsl": {
    "h": 295.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.41772,
    "c": 0.17095,
    "h": 324.9
  },
  "luminance": 0.06167
}

Semantic roles & 50–950 ramp

primary
#771A7E
secondary
#4AB242
accent
#E93F4B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #771A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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