#771F7F#771F7F

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

Color values

HEX#771F7F
RGBrgb(119, 31, 127)
HSLhsl(295, 61%, 31%)
HSVhsv(295, 76%, 50%)
CMYKcmyk(6.3%, 75.6%, 0%, 50.2%)
CIE-LABlab(30.48, 49.97, -34.83)
CIE-LCHlch(30.48, 60.91, 325.12°)
OKLaboklab(42.26% 0.1352 -0.0971)
OKLCHoklch(42.26% 0.166 324.3)
XYZxyz(11.9282, 6.4350, 20.6884)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771F7F #277F1F
analogous
#471F7F #771F7F #7F1F57
triadic
#771F7F #7F771F #1F7F77
tetradic
#771F7F #7F471F #277F1F #1F577F
square
#771F7F #7F471F #277F1F #1F577F
split-complementary
#771F7F #577F1F #1F7F47
monochromatic
#1B071D #49134E #771F7F #A52BB0 #C646D2

Accessibility & contrast

On white

9.18
#771F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#771F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771F7F
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771F7F#FFFFFF#000000##FFFFFF
##771F7F1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#314B7D
Tritanopia (blue-blind)
#79304D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #771f7f;
/* rgb */ color: rgb(119, 31, 127);
/* oklch */ color: oklch(42.3% 0.166 324.3);
Tailwind
colors: {
  custom: {
    50: '#a165a4',
    500: '#771f7f',
    950: '#000000',
  },
}
SCSS
$custom: #771f7f;
$custom-light: #a165a4;
$custom-dark: #000000;
JSON
{
  "hex": "#771f7f",
  "rgb": {
    "r": 119,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 295,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42256,
    "c": 0.16642,
    "h": 324.3
  },
  "luminance": 0.06434
}

Semantic roles & 50–950 ramp

primary
#771F7F
secondary
#51B248
accent
#E44451
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #771F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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