#771B8E#771B8E

#771B8E is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.0% C 0.184 H 318.4°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#771B8E
RGBrgb(119, 27, 142)
HSLhsl(288, 68%, 33%)
HSVhsv(288, 81%, 56%)
CMYKcmyk(16.2%, 81%, 0%, 44.3%)
CIE-LABlab(31.02, 54.16, -43.32)
CIE-LCHlch(31.02, 69.36, 321.35°)
OKLaboklab(42.95% 0.1372 -0.1219)
OKLCHoklch(42.95% 0.184 318.4)
XYZxyz(12.8815, 6.6594, 26.1928)
Luminance0.0666 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#771B8E #328E1B
analogous
#3D1B8E #771B8E #8E1B6B
triadic
#771B8E #8E771B #1B8E77
tetradic
#771B8E #8E3D1B #328E1B #1B6B8E
square
#771B8E #8E3D1B #328E1B #1B6B8E
split-complementary
#771B8E #6B8E1B #1B8E3D
monochromatic
#210727 #4C115B #771B8E #A225C1 #BE47DC

Accessibility & contrast

On white

9.01
#771B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #771B8E
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##771B8E#FFFFFF#000000##FFFFFF
##771B8E1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#214C8C
Tritanopia (blue-blind)
#763555
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #771b8e;
/* rgb */ color: rgb(119, 27, 142);
/* oklch */ color: oklch(43.0% 0.184 318.4);
Tailwind
colors: {
  custom: {
    50: '#a264b0',
    500: '#771b8e',
    950: '#000000',
  },
}
SCSS
$custom: #771b8e;
$custom-light: #a264b0;
$custom-dark: #000000;
JSON
{
  "hex": "#771b8e",
  "rgb": {
    "r": 119,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 288,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.42954,
    "c": 0.18353,
    "h": 318.4
  },
  "luminance": 0.06659
}

Semantic roles & 50–950 ramp

primary
#771B8E
secondary
#5FBE47
accent
#EB3D60
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#0F0610
muted
#7F7A7F

Preview Lab

Preview with #771B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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