#771F7E#771F7E

#771F7E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.166 H 324.8°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#771F7E
RGBrgb(119, 31, 126)
HSLhsl(296, 61%, 31%)
HSVhsv(296, 75%, 49%)
CMYKcmyk(5.6%, 75.4%, 0%, 50.6%)
CIE-LABlab(30.42, 49.78, -34.31)
CIE-LCHlch(30.42, 60.46, 325.43°)
OKLaboklab(42.19% 0.1352 -0.0955)
OKLCHoklch(42.19% 0.166 324.8)
XYZxyz(11.8633, 6.4090, 20.3468)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771F7E #267E1F
analogous
#471F7E #771F7E #7E1F55
triadic
#771F7E #7E771F #1F7E77
tetradic
#771F7E #7E471F #267E1F #1F557E
square
#771F7E #7E471F #267E1F #1F557E
split-complementary
#771F7E #557E1F #1F7E47
monochromatic
#1A071C #49134D #771F7E #A52BAF #C746D1

Accessibility & contrast

On white

9.20
#771F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#771F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771F7E
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771F7E#FFFFFF#000000##FFFFFF
##771F7E1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#7A304D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #771f7e;
/* rgb */ color: rgb(119, 31, 126);
/* oklch */ color: oklch(42.2% 0.166 324.8);
Tailwind
colors: {
  custom: {
    50: '#a165a4',
    500: '#771f7e',
    950: '#000000',
  },
}
SCSS
$custom: #771f7e;
$custom-light: #a165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#771f7e",
  "rgb": {
    "r": 119,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 295.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42191,
    "c": 0.16555,
    "h": 324.8
  },
  "luminance": 0.06408
}

Semantic roles & 50–950 ramp

primary
#771F7E
secondary
#4FB148
accent
#E44450
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #771F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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