#7F1581#7F1581

#7F1581 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.9% C 0.181 H 327.3°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#7F1581
RGBrgb(127, 21, 129)
HSLhsl(299, 72%, 29%)
HSVhsv(299, 84%, 51%)
CMYKcmyk(1.6%, 83.7%, 0%, 49.4%)
CIE-LABlab(30.96, 55.09, -35.25)
CIE-LCHlch(30.96, 65.40, 327.39°)
OKLaboklab(42.91% 0.1528 -0.098)
OKLCHoklch(42.91% 0.182 327.3)
XYZxyz(12.9828, 6.6343, 21.3614)
Luminance0.0663 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1581 #178115
analogous
#491581 #7F1581 #81154D
triadic
#7F1581 #817F15 #15817F
tetradic
#7F1581 #814915 #178115 #154D81
square
#7F1581 #814915 #178115 #154D81
split-complementary
#7F1581 #4D8115 #158149
monochromatic
#1A041A #4B0C4C #7F1581 #B31EB6 #DB33DE

Accessibility & contrast

On white

9.03
#7F1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7F1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1581
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1581#FFFFFF#000000##FFFFFF
##7F15811.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#344D7F
Tritanopia (blue-blind)
#832A4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1581;
/* rgb */ color: rgb(127, 21, 129);
/* oklch */ color: oklch(42.9% 0.181 327.3);
Tailwind
colors: {
  custom: {
    50: '#a862a6',
    500: '#7f1581',
    950: '#000000',
  },
}
SCSS
$custom: #7f1581;
$custom-light: #a862a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1581",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 298.889,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42905,
    "c": 0.1815,
    "h": 327.3
  },
  "luminance": 0.06633
}

Semantic roles & 50–950 ramp

primary
#7F1581
secondary
#3EB63C
accent
#EF393C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1581

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

Preview Lab → · Contrast checker → · Palette generator →

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