#7F1771#7F1771

#7F1771 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.168 H 334.5°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#7F1771
RGBrgb(127, 23, 113)
HSLhsl(308, 69%, 29%)
HSVhsv(308, 82%, 50%)
CMYKcmyk(0%, 81.9%, 11%, 50.2%)
CIE-LABlab(30.20, 51.96, -26.33)
CIE-LCHlch(30.20, 58.25, 333.13°)
OKLaboklab(42.06% 0.1514 -0.0722)
OKLCHoklch(42.06% 0.168 334.5)
XYZxyz(12.0396, 6.3182, 16.2050)
Luminance0.0632 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1771 #177F25
analogous
#59177F #7F1771 #7F173D
triadic
#7F1771 #717F17 #17717F
tetradic
#7F1771 #7F5917 #177F25 #173D7F
square
#7F1771 #7F5917 #177F25 #173D7F
split-complementary
#7F1771 #3D7F17 #177F59
monochromatic
#1A0517 #4B0E43 #7F1771 #B3209F #DB36C4

Accessibility & contrast

On white

9.28
#7F1771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F1771 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1771
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1771#FFFFFF#000000##FFFFFF
##7F17711.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E73
Deuteranopia (green-blind)
#3E4C6F
Tritanopia (blue-blind)
#852244
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1771;
/* rgb */ color: rgb(127, 23, 113);
/* oklch */ color: oklch(42.1% 0.168 334.5);
Tailwind
colors: {
  custom: {
    50: '#a8629a',
    500: '#7f1771',
    950: '#000000',
  },
}
SCSS
$custom: #7f1771;
$custom-light: #a8629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1771",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 308.077,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42062,
    "c": 0.1677,
    "h": 334.5
  },
  "luminance": 0.06317
}

Semantic roles & 50–950 ramp

primary
#7F1771
secondary
#3EB44E
accent
#EC533C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1771

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

Preview Lab → · Contrast checker → · Palette generator →

#7F1771 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva