#771F7D#771F7D

#771F7D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.165 H 325.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#771F7D
RGBrgb(119, 31, 125)
HSLhsl(296, 60%, 31%)
HSVhsv(296, 75%, 49%)
CMYKcmyk(4.8%, 75.2%, 0%, 51%)
CIE-LABlab(30.36, 49.60, -33.78)
CIE-LCHlch(30.36, 60.01, 325.75°)
OKLaboklab(42.13% 0.1353 -0.094)
OKLCHoklch(42.13% 0.165 325.2)
XYZxyz(11.7991, 6.3833, 20.0087)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771F7D #257D1F
analogous
#481F7D #771F7D #7D1F54
triadic
#771F7D #7D771F #1F7D77
tetradic
#771F7D #7D481F #257D1F #1F547D
square
#771F7D #7D481F #257D1F #1F547D
split-complementary
#771F7D #547D1F #1F7D48
monochromatic
#1A071B #48134C #771F7D #A62BAE #C845D1

Accessibility & contrast

On white

9.22
#771F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #771F7D
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771F7D#FFFFFF#000000##FFFFFF
##771F7D1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024180
Deuteranopia (green-blind)
#334B7B
Tritanopia (blue-blind)
#7A2F4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #771f7d;
/* rgb */ color: rgb(119, 31, 125);
/* oklch */ color: oklch(42.1% 0.165 325.2);
Tailwind
colors: {
  custom: {
    50: '#a165a3',
    500: '#771f7d',
    950: '#000000',
  },
}
SCSS
$custom: #771f7d;
$custom-light: #a165a3;
$custom-dark: #000000;
JSON
{
  "hex": "#771f7d",
  "rgb": {
    "r": 119,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 296.17,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42127,
    "c": 0.1647,
    "h": 325.2
  },
  "luminance": 0.06383
}

Semantic roles & 50–950 ramp

primary
#771F7D
secondary
#4EB048
accent
#E3444F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #771F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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