#7F1481#7F1481

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

Color values

HEX#7F1481
RGBrgb(127, 20, 129)
HSLhsl(299, 73%, 29%)
HSVhsv(299, 84%, 51%)
CMYKcmyk(1.6%, 84.5%, 0%, 49.4%)
CIE-LABlab(30.87, 55.34, -35.38)
CIE-LCHlch(30.87, 65.68, 327.40°)
OKLaboklab(42.85% 0.1535 -0.0984)
OKLCHoklch(42.85% 0.182 327.3)
XYZxyz(12.9648, 6.5983, 21.3554)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1481 #168114
analogous
#491481 #7F1481 #81144D
triadic
#7F1481 #817F14 #14817F
tetradic
#7F1481 #814914 #168114 #144D81
square
#7F1481 #814914 #168114 #144D81
split-complementary
#7F1481 #4D8114 #148149
monochromatic
#1A041A #4B0C4C #7F1481 #B31CB6 #DC30DF

Accessibility & contrast

On white

9.05
#7F1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F1481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1481
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1481#FFFFFF#000000##FFFFFF
##7F14811.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1481;
/* rgb */ color: rgb(127, 20, 129);
/* oklch */ color: oklch(42.8% 0.182 327.3);
Tailwind
colors: {
  custom: {
    50: '#a862a6',
    500: '#7f1481',
    950: '#000000',
  },
}
SCSS
$custom: #7f1481;
$custom-light: #a862a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1481",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 298.899,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42845,
    "c": 0.18229,
    "h": 327.3
  },
  "luminance": 0.06597
}

Semantic roles & 50–950 ramp

primary
#7F1481
secondary
#3DB63B
accent
#F0383B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1481

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

Preview Lab → · Contrast checker → · Palette generator →

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