#771F98#771F98

#771F98 is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.189 H 314.5°. Best body text is #FFFFFF at 8.63:1 contrast (WCAG AA passes).

Color values

HEX#771F98
RGBrgb(119, 31, 152)
HSLhsl(284, 66%, 36%)
HSVhsv(284, 80%, 60%)
CMYKcmyk(21.7%, 79.6%, 0%, 40.4%)
CIE-LABlab(32.19, 54.85, -47.57)
CIE-LCHlch(32.19, 72.61, 319.07°)
OKLaboklab(44.01% 0.1322 -0.1344)
OKLCHoklch(44.01% 0.189 314.5)
XYZxyz(13.7643, 7.1694, 30.3585)
Luminance0.0717 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771F98 #40981F
analogous
#3A1F98 #771F98 #981F7C
triadic
#771F98 #98771F #1F9877
tetradic
#771F98 #983A1F #40981F #1F7C98
square
#771F98 #983A1F #40981F #1F7C98
split-complementary
#771F98 #7C981F #1F983A
monochromatic
#270A32 #4F1565 #771F98 #9F29CB #B755DC

Accessibility & contrast

On white

8.63
#771F98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#771F98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771F98
8.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771F98#FFFFFF#000000##FFFFFF
##771F981.008.632.438.63
#FFFFFF8.631.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#164E95
Tritanopia (blue-blind)
#743C5B
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #771f98;
/* rgb */ color: rgb(119, 31, 152);
/* oklch */ color: oklch(44.0% 0.189 314.5);
Tailwind
colors: {
  custom: {
    50: '#a266b7',
    500: '#771f98',
    950: '#000000',
  },
}
SCSS
$custom: #771f98;
$custom-light: #a266b7;
$custom-dark: #000000;
JSON
{
  "hex": "#771f98",
  "rgb": {
    "r": 119,
    "g": 31,
    "b": 152
  },
  "hsl": {
    "h": 283.636,
    "s": 66.12,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44007,
    "c": 0.18851,
    "h": 314.5
  },
  "luminance": 0.07169
}

Semantic roles & 50–950 ramp

primary
#771F98
secondary
#71C053
accent
#E93F6D
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #771F98

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

Preview Lab → · Contrast checker → · Palette generator →

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