#7F1D7A#7F1D7A

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

Color values

HEX#7F1D7A
RGBrgb(127, 29, 122)
HSLhsl(303, 63%, 31%)
HSVhsv(303, 77%, 50%)
CMYKcmyk(0%, 77.2%, 3.9%, 50.2%)
CIE-LABlab(31.34, 51.60, -30.24)
CIE-LCHlch(31.34, 59.81, 329.62°)
OKLaboklab(43.04% 0.1464 -0.0835)
OKLCHoklch(43.04% 0.169 330.3)
XYZxyz(12.7046, 6.7969, 19.0514)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D7A #1D7F22
analogous
#531D7F #7F1D7A #7F1D49
triadic
#7F1D7A #7A7F1D #1D7A7F
tetradic
#7F1D7A #7F531D #1D7F22 #1D497F
square
#7F1D7A #7F531D #1D7F22 #1D497F
split-complementary
#7F1D7A #497F1D #1D7F53
monochromatic
#1B061A #4D124A #7F1D7A #B128AA #D442CD

Accessibility & contrast

On white

8.90
#7F1D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F1D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D7A
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D7A#FFFFFF#000000##FFFFFF
##7F1D7A1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10417D
Deuteranopia (green-blind)
#3B4E78
Tritanopia (blue-blind)
#842A4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1d7a;
/* rgb */ color: rgb(127, 29, 122);
/* oklch */ color: oklch(43.0% 0.169 330.3);
Tailwind
colors: {
  custom: {
    50: '#a765a1',
    500: '#7f1d7a',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d7a;
$custom-light: #a765a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d7a",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 122
  },
  "hsl": {
    "h": 303.061,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4304,
    "c": 0.16851,
    "h": 330.3
  },
  "luminance": 0.06796
}

Semantic roles & 50–950 ramp

primary
#7F1D7A
secondary
#45B24B
accent
#E64A42
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F1D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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