#7F1A8D#7F1A8D

#7F1A8D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.187 H 322.4°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7F1A8D
RGBrgb(127, 26, 141)
HSLhsl(293, 69%, 33%)
HSVhsv(293, 82%, 55%)
CMYKcmyk(9.9%, 81.6%, 0%, 44.7%)
CIE-LABlab(32.20, 55.85, -40.73)
CIE-LCHlch(32.20, 69.12, 323.90°)
OKLaboklab(44.03% 0.1479 -0.114)
OKLCHoklch(44.03% 0.187 322.4)
XYZxyz(13.9290, 7.1747, 25.8453)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A8D #288D1A
analogous
#461A8D #7F1A8D #8D1A61
triadic
#7F1A8D #8D7F1A #1A8D7F
tetradic
#7F1A8D #8D461A #288D1A #1A618D
square
#7F1A8D #8D461A #288D1A #1A618D
split-complementary
#7F1A8D #618D1A #1A8D46
monochromatic
#220726 #501059 #7F1A8D #AE24C1 #CA45DD

Accessibility & contrast

On white

8.62
#7F1A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F1A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1A8D
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A8D#FFFFFF#000000##FFFFFF
##7F1A8D1.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#2D4F8A
Tritanopia (blue-blind)
#813254
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1a8d;
/* rgb */ color: rgb(127, 26, 141);
/* oklch */ color: oklch(44.0% 0.187 322.4);
Tailwind
colors: {
  custom: {
    50: '#a865af',
    500: '#7f1a8d',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a8d;
$custom-light: #a865af;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a8d",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 292.696,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44032,
    "c": 0.18678,
    "h": 322.4
  },
  "luminance": 0.07174
}

Semantic roles & 50–950 ramp

primary
#7F1A8D
secondary
#54BE45
accent
#EC3C51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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