#7F1E7D#7F1E7D

#7F1E7D is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.170 H 328.9°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#7F1E7D
RGBrgb(127, 30, 125)
HSLhsl(301, 62%, 31%)
HSVhsv(301, 76%, 50%)
CMYKcmyk(0%, 76.4%, 1.6%, 50.2%)
CIE-LABlab(31.63, 51.78, -31.67)
CIE-LCHlch(31.63, 60.69, 328.55°)
OKLaboklab(43.3% 0.1455 -0.0876)
OKLCHoklch(43.3% 0.17 328.9)
XYZxyz(12.9182, 6.9222, 20.0538)
Luminance0.0692 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1E7D #1E7F20
analogous
#501E7F #7F1E7D #7F1E4C
triadic
#7F1E7D #7D7F1E #1E7D7F
tetradic
#7F1E7D #7F501E #1E7F20 #1E4C7F
square
#7F1E7D #7F501E #1E7F20 #1E4C7F
split-complementary
#7F1E7D #4C7F1E #1E7F50
monochromatic
#1C071C #4D124C #7F1E7D #B12AAE #D344D0

Accessibility & contrast

On white

8.81
#7F1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7F1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1E7D
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1E7D#FFFFFF#000000##FFFFFF
##7F1E7D1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D4280
Deuteranopia (green-blind)
#3A4F7B
Tritanopia (blue-blind)
#832D4C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1e7d;
/* rgb */ color: rgb(127, 30, 125);
/* oklch */ color: oklch(43.3% 0.170 328.9);
Tailwind
colors: {
  custom: {
    50: '#a765a3',
    500: '#7f1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1e7d;
$custom-light: #a765a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1e7d",
  "rgb": {
    "r": 127,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 301.237,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43303,
    "c": 0.16981,
    "h": 328.9
  },
  "luminance": 0.06921
}

Semantic roles & 50–950 ramp

primary
#7F1E7D
secondary
#47B249
accent
#E54643
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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