#771F7B#771F7B

#771F7B is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.163 H 326.1°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#771F7B
RGBrgb(119, 31, 123)
HSLhsl(297, 60%, 30%)
HSVhsv(297, 75%, 48%)
CMYKcmyk(3.3%, 74.8%, 0%, 51.8%)
CIE-LABlab(30.24, 49.23, -32.71)
CIE-LCHlch(30.24, 59.11, 326.40°)
OKLaboklab(42% 0.1353 -0.0909)
OKLCHoklch(42% 0.163 326.1)
XYZxyz(11.6727, 6.3328, 19.3426)
Luminance0.0633 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771F7B #237B1F
analogous
#491F7B #771F7B #7B1F51
triadic
#771F7B #7B771F #1F7B77
tetradic
#771F7B #7B491F #237B1F #1F517B
square
#771F7B #7B491F #237B1F #1F517B
split-complementary
#771F7B #517B1F #1F7B49
monochromatic
#180619 #48134A #771F7B #A62BAC #CA44D0

Accessibility & contrast

On white

9.27
#771F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#771F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771F7B
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771F7B#FFFFFF#000000##FFFFFF
##771F7B1.009.272.279.27
#FFFFFF9.271.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06407E
Deuteranopia (green-blind)
#344B79
Tritanopia (blue-blind)
#7A2E4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #771f7b;
/* rgb */ color: rgb(119, 31, 123);
/* oklch */ color: oklch(42.0% 0.163 326.1);
Tailwind
colors: {
  custom: {
    50: '#a164a1',
    500: '#771f7b',
    950: '#000000',
  },
}
SCSS
$custom: #771f7b;
$custom-light: #a164a1;
$custom-dark: #000000;
JSON
{
  "hex": "#771f7b",
  "rgb": {
    "r": 119,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 297.391,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42,
    "c": 0.163,
    "h": 326.1
  },
  "luminance": 0.06332
}

Semantic roles & 50–950 ramp

primary
#771F7B
secondary
#4CAE48
accent
#E3454C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #771F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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