#7F1577#7F1577

#7F1577 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.174 H 331.7°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#7F1577
RGBrgb(127, 21, 119)
HSLhsl(305, 72%, 29%)
HSVhsv(305, 83%, 50%)
CMYKcmyk(0%, 83.5%, 6.3%, 50.2%)
CIE-LABlab(30.35, 53.45, -29.91)
CIE-LCHlch(30.35, 61.24, 330.77°)
OKLaboklab(42.28% 0.1531 -0.0825)
OKLCHoklch(42.28% 0.174 331.7)
XYZxyz(12.3504, 6.3813, 18.0304)
Luminance0.0638 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1577 #157F1D
analogous
#52157F #7F1577 #7F1542
triadic
#7F1577 #777F15 #15777F
tetradic
#7F1577 #7F5215 #157F1D #15427F
square
#7F1577 #7F5215 #157F1D #15427F
split-complementary
#7F1577 #427F15 #157F52
monochromatic
#1A0419 #4A0C46 #7F1577 #B41EA8 #DD31D0

Accessibility & contrast

On white

9.23
#7F1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F1577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1577
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1577#FFFFFF#000000##FFFFFF
##7F15771.009.232.289.23
#FFFFFF9.231.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083E79
Deuteranopia (green-blind)
#3A4C75
Tritanopia (blue-blind)
#852447
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1577;
/* rgb */ color: rgb(127, 21, 119);
/* oklch */ color: oklch(42.3% 0.174 331.7);
Tailwind
colors: {
  custom: {
    50: '#a8629e',
    500: '#7f1577',
    950: '#000000',
  },
}
SCSS
$custom: #7f1577;
$custom-light: #a8629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1577",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 304.528,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42281,
    "c": 0.1739,
    "h": 331.7
  },
  "luminance": 0.0638
}

Semantic roles & 50–950 ramp

primary
#7F1577
secondary
#3CB445
accent
#EE4739
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1577

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

Preview Lab → · Contrast checker → · Palette generator →

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