#7F1576#7F1576

#7F1576 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.173 H 332.2°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7F1576
RGBrgb(127, 21, 118)
HSLhsl(305, 72%, 29%)
HSVhsv(305, 83%, 50%)
CMYKcmyk(0%, 83.5%, 7.1%, 50.2%)
CIE-LABlab(30.30, 53.29, -29.36)
CIE-LCHlch(30.30, 60.84, 331.14°)
OKLaboklab(42.22% 0.1531 -0.0809)
OKLCHoklch(42.22% 0.173 332.2)
XYZxyz(12.2906, 6.3574, 17.7158)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1576 #157F1E
analogous
#53157F #7F1576 #7F1541
triadic
#7F1576 #767F15 #15767F
tetradic
#7F1576 #7F5315 #157F1E #15417F
square
#7F1576 #7F5315 #157F1E #15417F
split-complementary
#7F1576 #417F15 #157F53
monochromatic
#1A0418 #4A0C45 #7F1576 #B41EA7 #DD31CE

Accessibility & contrast

On white

9.25
#7F1576 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7F1576 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1576
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1576#FFFFFF#000000##FFFFFF
##7F15761.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3E78
Deuteranopia (green-blind)
#3B4C74
Tritanopia (blue-blind)
#852346
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1576;
/* rgb */ color: rgb(127, 21, 118);
/* oklch */ color: oklch(42.2% 0.173 332.2);
Tailwind
colors: {
  custom: {
    50: '#a8629e',
    500: '#7f1576',
    950: '#000000',
  },
}
SCSS
$custom: #7f1576;
$custom-light: #a8629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1576",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 118
  },
  "hsl": {
    "h": 305.094,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42221,
    "c": 0.17316,
    "h": 332.2
  },
  "luminance": 0.06356
}

Semantic roles & 50–950 ramp

primary
#7F1576
secondary
#3CB446
accent
#EE4939
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1576

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

Preview Lab → · Contrast checker → · Palette generator →

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