#771D8B#771D8B

#771D8B is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.179 H 319.4°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#771D8B
RGBrgb(119, 29, 139)
HSLhsl(289, 65%, 33%)
HSVhsv(289, 79%, 55%)
CMYKcmyk(14.4%, 79.1%, 0%, 45.5%)
CIE-LABlab(31.03, 52.94, -41.44)
CIE-LCHlch(31.03, 67.23, 321.95°)
OKLaboklab(42.9% 0.136 -0.1164)
OKLCHoklch(42.9% 0.179 319.4)
XYZxyz(12.7067, 6.6654, 25.0383)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771D8B #318B1D
analogous
#401D8B #771D8B #8B1D68
triadic
#771D8B #8B771D #1D8B77
tetradic
#771D8B #8B401D #318B1D #1D688B
square
#771D8B #8B401D #318B1D #1D688B
split-complementary
#771D8B #688B1D #1D8B40
monochromatic
#200826 #4C1258 #771D8B #A228BE #BF49D9

Accessibility & contrast

On white

9.00
#771D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#771D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771D8B
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771D8B#FFFFFF#000000##FFFFFF
##771D8B1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438E
Deuteranopia (green-blind)
#264C89
Tritanopia (blue-blind)
#773554
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #771d8b;
/* rgb */ color: rgb(119, 29, 139);
/* oklch */ color: oklch(42.9% 0.179 319.4);
Tailwind
colors: {
  custom: {
    50: '#a264ad',
    500: '#771d8b',
    950: '#000000',
  },
}
SCSS
$custom: #771d8b;
$custom-light: #a264ad;
$custom-dark: #000000;
JSON
{
  "hex": "#771d8b",
  "rgb": {
    "r": 119,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 289.091,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.42898,
    "c": 0.17898,
    "h": 319.4
  },
  "luminance": 0.06665
}

Semantic roles & 50–950 ramp

primary
#771D8B
secondary
#5DBB49
accent
#E83F5E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #771D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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