#7F1772#7F1772

#7F1772 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.168 H 334.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7F1772
RGBrgb(127, 23, 114)
HSLhsl(308, 69%, 29%)
HSVhsv(308, 82%, 50%)
CMYKcmyk(0%, 81.9%, 10.2%, 50.2%)
CIE-LABlab(30.26, 52.12, -26.88)
CIE-LCHlch(30.26, 58.64, 332.72°)
OKLaboklab(42.12% 0.1514 -0.0737)
OKLCHoklch(42.12% 0.168 334)
XYZxyz(12.0962, 6.3408, 16.5032)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1772 #177F24
analogous
#58177F #7F1772 #7F173E
triadic
#7F1772 #727F17 #17727F
tetradic
#7F1772 #7F5817 #177F24 #173E7F
square
#7F1772 #7F5817 #177F24 #173E7F
split-complementary
#7F1772 #3E7F17 #177F58
monochromatic
#1A0517 #4B0E43 #7F1772 #B320A1 #DB36C6

Accessibility & contrast

On white

9.26
#7F1772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1772
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1772#FFFFFF#000000##FFFFFF
##7F17721.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143E74
Deuteranopia (green-blind)
#3D4C70
Tritanopia (blue-blind)
#852244
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1772;
/* rgb */ color: rgb(127, 23, 114);
/* oklch */ color: oklch(42.1% 0.168 334.0);
Tailwind
colors: {
  custom: {
    50: '#a8629b',
    500: '#7f1772',
    950: '#000000',
  },
}
SCSS
$custom: #7f1772;
$custom-light: #a8629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1772",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 307.5,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42119,
    "c": 0.16843,
    "h": 334
  },
  "luminance": 0.0634
}

Semantic roles & 50–950 ramp

primary
#7F1772
secondary
#3EB44D
accent
#EC523C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1772

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

Preview Lab → · Contrast checker → · Palette generator →

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