#771B7F#771B7F

#771B7F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.171 H 324.5°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#771B7F
RGBrgb(119, 27, 127)
HSLhsl(295, 65%, 30%)
HSVhsv(295, 79%, 50%)
CMYKcmyk(6.3%, 78.7%, 0%, 50.2%)
CIE-LABlab(30.01, 51.34, -35.60)
CIE-LCHlch(30.01, 62.47, 325.26°)
OKLaboklab(41.92% 0.1389 -0.0993)
OKLCHoklch(41.92% 0.171 324.5)
XYZxyz(11.8301, 6.2389, 20.6557)
Luminance0.0624 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771B7F #237F1B
analogous
#451B7F #771B7F #7F1B55
triadic
#771B7F #7F771B #1B7F77
tetradic
#771B7F #7F451B #237F1B #1B557F
square
#771B7F #7F451B #237F1B #1B557F
split-complementary
#771B7F #557F1B #1B7F45
monochromatic
#18061A #48104D #771B7F #A626B1 #CA3ED6

Accessibility & contrast

On white

9.34
#771B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#771B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #771B7F
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771B7F#FFFFFF#000000##FFFFFF
##771B7F1.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#2F4A7D
Tritanopia (blue-blind)
#792E4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #771b7f;
/* rgb */ color: rgb(119, 27, 127);
/* oklch */ color: oklch(41.9% 0.171 324.5);
Tailwind
colors: {
  custom: {
    50: '#a263a5',
    500: '#771b7f',
    950: '#000000',
  },
}
SCSS
$custom: #771b7f;
$custom-light: #a263a5;
$custom-dark: #000000;
JSON
{
  "hex": "#771b7f",
  "rgb": {
    "r": 119,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 295.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.41917,
    "c": 0.17076,
    "h": 324.5
  },
  "luminance": 0.06238
}

Semantic roles & 50–950 ramp

primary
#771B7F
secondary
#4CB343
accent
#E8404D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#0F060F
muted
#7F7A7F

Preview Lab

Preview with #771B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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