#7F1E7E#7F1E7E

#7F1E7E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.171 H 328.5°. Best body text is #FFFFFF at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#7F1E7E
RGBrgb(127, 30, 126)
HSLhsl(301, 62%, 31%)
HSVhsv(301, 76%, 50%)
CMYKcmyk(0%, 76.4%, 0.8%, 50.2%)
CIE-LABlab(31.69, 51.95, -32.21)
CIE-LCHlch(31.69, 61.12, 328.20°)
OKLaboklab(43.36% 0.1455 -0.0892)
OKLCHoklch(43.36% 0.171 328.5)
XYZxyz(12.9824, 6.9479, 20.3919)
Luminance0.0695 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E7E #1E7F1F
analogous
#4F1E7F #7F1E7E #7F1E4D
triadic
#7F1E7E #7E7F1E #1E7E7F
tetradic
#7F1E7E #7F4F1E #1E7F1F #1E4D7F
square
#7F1E7E #7F4F1E #1E7F1F #1E4D7F
split-complementary
#7F1E7E #4D7F1E #1E7F4F
monochromatic
#1C071C #4D124D #7F1E7E #B12AAF #D344D1

Accessibility & contrast

On white

8.79
#7F1E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F1E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E7E
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E7E#FFFFFF#000000##FFFFFF
##7F1E7E1.008.792.398.79
#FFFFFF8.791.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4281
Deuteranopia (green-blind)
#394F7C
Tritanopia (blue-blind)
#832D4D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1e7e;
/* rgb */ color: rgb(127, 30, 126);
/* oklch */ color: oklch(43.4% 0.171 328.5);
Tailwind
colors: {
  custom: {
    50: '#a765a4',
    500: '#7f1e7e',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e7e;
$custom-light: #a765a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e7e",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 300.619,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43364,
    "c": 0.17062,
    "h": 328.5
  },
  "luminance": 0.06947
}

Semantic roles & 50–950 ramp

primary
#7F1E7E
secondary
#47B248
accent
#E54543
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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