#7F1D8A#7F1D8A

#7F1D8A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.1% C 0.181 H 323.5°. Best body text is #FFFFFF at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#7F1D8A
RGBrgb(127, 29, 138)
HSLhsl(294, 65%, 33%)
HSVhsv(294, 79%, 54%)
CMYKcmyk(8%, 79%, 0%, 45.9%)
CIE-LABlab(32.32, 54.40, -38.69)
CIE-LCHlch(32.32, 66.75, 324.58°)
OKLaboklab(44.05% 0.1458 -0.1081)
OKLCHoklch(44.05% 0.181 323.5)
XYZxyz(13.7788, 7.2266, 24.7089)
Luminance0.0723 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D8A #288A1D
analogous
#481D8A #7F1D8A #8A1D5E
triadic
#7F1D8A #8A7F1D #1D8A7F
tetradic
#7F1D8A #8A481D #288A1D #1D5E8A
square
#7F1D8A #8A481D #288A1D #1D5E8A
split-complementary
#7F1D8A #5E8A1D #1D8A48
monochromatic
#220825 #501257 #7F1D8A #AE28BD #CA49D9

Accessibility & contrast

On white

8.59
#7F1D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7F1D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D8A
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D8A#FFFFFF#000000##FFFFFF
##7F1D8A1.008.592.458.59
#FFFFFF8.591.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#315088
Tritanopia (blue-blind)
#813253
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1d8a;
/* rgb */ color: rgb(127, 29, 138);
/* oklch */ color: oklch(44.1% 0.181 323.5);
Tailwind
colors: {
  custom: {
    50: '#a865ad',
    500: '#7f1d8a',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d8a;
$custom-light: #a865ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d8a",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 138
  },
  "hsl": {
    "h": 293.945,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44051,
    "c": 0.18148,
    "h": 323.5
  },
  "luminance": 0.07226
}

Semantic roles & 50–950 ramp

primary
#7F1D8A
secondary
#54BB48
accent
#E84051
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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