#7F1A82#7F1A82

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

Color values

HEX#7F1A82
RGBrgb(127, 26, 130)
HSLhsl(298, 67%, 31%)
HSVhsv(298, 80%, 51%)
CMYKcmyk(2.3%, 80%, 0%, 49%)
CIE-LABlab(31.49, 53.89, -35.02)
CIE-LCHlch(31.49, 64.27, 326.98°)
OKLaboklab(43.3% 0.1489 -0.0974)
OKLCHoklch(43.3% 0.178 326.8)
XYZxyz(13.1508, 6.8635, 21.7469)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1A82 #1D821A
analogous
#4B1A82 #7F1A82 #821A51
triadic
#7F1A82 #827F1A #1A827F
tetradic
#7F1A82 #824B1A #1D821A #1A5182
square
#7F1A82 #824B1A #1D821A #1A5182
split-complementary
#7F1A82 #51821A #1A824B
monochromatic
#1B061C #4D104F #7F1A82 #B124B5 #D43ED8

Accessibility & contrast

On white

8.85
#7F1A82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1A82
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1A82#FFFFFF#000000##FFFFFF
##7F1A821.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004285
Deuteranopia (green-blind)
#354E80
Tritanopia (blue-blind)
#832D4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1a82;
/* rgb */ color: rgb(127, 26, 130);
/* oklch */ color: oklch(43.3% 0.178 326.8);
Tailwind
colors: {
  custom: {
    50: '#a864a7',
    500: '#7f1a82',
    950: '#000000',
  },
}
SCSS
$custom: #7f1a82;
$custom-light: #a864a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1a82",
  "rgb": {
    "r": 127,
    "g": 26,
    "b": 130
  },
  "hsl": {
    "h": 298.269,
    "s": 66.667,
    "l": 30.588
  },
  "oklch": {
    "l": 0.43304,
    "c": 0.17787,
    "h": 326.8
  },
  "luminance": 0.06863
}

Semantic roles & 50–950 ramp

primary
#7F1A82
secondary
#45B642
accent
#EA3E43
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1A82

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

Preview Lab → · Contrast checker → · Palette generator →

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