#7F1D79#7F1D79

#7F1D79 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.168 H 330.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#7F1D79
RGBrgb(127, 29, 121)
HSLhsl(304, 63%, 31%)
HSVhsv(304, 77%, 50%)
CMYKcmyk(0%, 77.2%, 4.7%, 50.2%)
CIE-LABlab(31.28, 51.43, -29.70)
CIE-LCHlch(31.28, 59.39, 329.99°)
OKLaboklab(42.98% 0.1464 -0.0819)
OKLCHoklch(42.98% 0.168 330.8)
XYZxyz(12.6429, 6.7722, 18.7267)
Luminance0.0677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D79 #1D7F23
analogous
#541D7F #7F1D79 #7F1D48
triadic
#7F1D79 #797F1D #1D797F
tetradic
#7F1D79 #7F541D #1D7F23 #1D487F
square
#7F1D79 #7F541D #1D7F23 #1D487F
split-complementary
#7F1D79 #487F1D #1D7F54
monochromatic
#1B061A #4D124A #7F1D79 #B128A8 #D442CB

Accessibility & contrast

On white

8.92
#7F1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7F1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D79
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D79#FFFFFF#000000##FFFFFF
##7F1D791.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12417B
Deuteranopia (green-blind)
#3C4E77
Tritanopia (blue-blind)
#842A4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1d79;
/* rgb */ color: rgb(127, 29, 121);
/* oklch */ color: oklch(43.0% 0.168 330.8);
Tailwind
colors: {
  custom: {
    50: '#a765a0',
    500: '#7f1d79',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d79;
$custom-light: #a765a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d79",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 303.673,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42981,
    "c": 0.16773,
    "h": 330.8
  },
  "luminance": 0.06771
}

Semantic roles & 50–950 ramp

primary
#7F1D79
secondary
#45B24C
accent
#E64C42
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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