#7F1981#7F1981

#7F1981 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.178 H 327.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7F1981
RGBrgb(127, 25, 129)
HSLhsl(299, 68%, 30%)
HSVhsv(299, 81%, 51%)
CMYKcmyk(1.6%, 80.6%, 0%, 49.4%)
CIE-LABlab(31.33, 54.01, -34.65)
CIE-LCHlch(31.33, 64.17, 327.31°)
OKLaboklab(43.17% 0.1497 -0.0963)
OKLCHoklch(43.17% 0.178 327.3)
XYZxyz(13.0623, 6.7932, 21.3879)
Luminance0.0679 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1981 #1B8119
analogous
#4B1981 #7F1981 #81194F
triadic
#7F1981 #817F19 #19817F
tetradic
#7F1981 #814B19 #1B8119 #194F81
square
#7F1981 #814B19 #1B8119 #194F81
split-complementary
#7F1981 #4F8119 #19814B
monochromatic
#1A051A #4D0F4E #7F1981 #B123B4 #D63BD9

Accessibility & contrast

On white

8.90
#7F1981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F1981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1981
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1981#FFFFFF#000000##FFFFFF
##7F19811.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004284
Deuteranopia (green-blind)
#364E7F
Tritanopia (blue-blind)
#832C4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1981;
/* rgb */ color: rgb(127, 25, 129);
/* oklch */ color: oklch(43.2% 0.178 327.3);
Tailwind
colors: {
  custom: {
    50: '#a864a6',
    500: '#7f1981',
    950: '#000000',
  },
}
SCSS
$custom: #7f1981;
$custom-light: #a864a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1981",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 298.846,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.43169,
    "c": 0.17802,
    "h": 327.3
  },
  "luminance": 0.06792
}

Semantic roles & 50–950 ramp

primary
#7F1981
secondary
#43B541
accent
#EA3D41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1981

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

Preview Lab → · Contrast checker → · Palette generator →

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