#7F1E7A#7F1E7A

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

Color values

HEX#7F1E7A
RGBrgb(127, 30, 122)
HSLhsl(303, 62%, 31%)
HSVhsv(303, 76%, 50%)
CMYKcmyk(0%, 76.4%, 3.9%, 50.2%)
CIE-LABlab(31.46, 51.27, -30.06)
CIE-LCHlch(31.46, 59.43, 329.62°)
OKLaboklab(43.12% 0.1454 -0.083)
OKLCHoklch(43.12% 0.167 330.3)
XYZxyz(12.7295, 6.8467, 19.0597)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E7A #1E7F23
analogous
#531E7F #7F1E7A #7F1E49
triadic
#7F1E7A #7A7F1E #1E7A7F
tetradic
#7F1E7A #7F531E #1E7F23 #1E497F
square
#7F1E7A #7F531E #1E7F23 #1E497F
split-complementary
#7F1E7A #497F1E #1E7F53
monochromatic
#1C071B #4D124A #7F1E7A #B12AAA #D344CC

Accessibility & contrast

On white

8.86
#7F1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7F1E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E7A
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E7A#FFFFFF#000000##FFFFFF
##7F1E7A1.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12427C
Deuteranopia (green-blind)
#3C4F78
Tritanopia (blue-blind)
#842B4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1e7a;
/* rgb */ color: rgb(127, 30, 122);
/* oklch */ color: oklch(43.1% 0.167 330.3);
Tailwind
colors: {
  custom: {
    50: '#a765a1',
    500: '#7f1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e7a;
$custom-light: #a765a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e7a",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 303.093,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43123,
    "c": 0.16743,
    "h": 330.3
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#7F1E7A
secondary
#47B24C
accent
#E54B43
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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