#7F1D82#7F1D82

#7F1D82 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.5% C 0.175 H 326.8°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7F1D82
RGBrgb(127, 29, 130)
HSLhsl(298, 64%, 31%)
HSVhsv(298, 78%, 51%)
CMYKcmyk(2.3%, 77.7%, 0%, 49%)
CIE-LABlab(31.81, 52.97, -34.51)
CIE-LCHlch(31.81, 63.22, 326.91°)
OKLaboklab(43.53% 0.1463 -0.0959)
OKLCHoklch(43.53% 0.175 326.8)
XYZxyz(13.2208, 7.0034, 21.7702)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D82 #20821D
analogous
#4C1D82 #7F1D82 #821D52
triadic
#7F1D82 #827F1D #1D827F
tetradic
#7F1D82 #824C1D #20821D #1D5282
square
#7F1D82 #824C1D #20821D #1D5282
split-complementary
#7F1D82 #52821D #1D824C
monochromatic
#1D071E #4E1250 #7F1D82 #B028B4 #D144D5

Accessibility & contrast

On white

8.75
#7F1D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7F1D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D82
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D82#FFFFFF#000000##FFFFFF
##7F1D821.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004385
Deuteranopia (green-blind)
#374F80
Tritanopia (blue-blind)
#832E4F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1d82;
/* rgb */ color: rgb(127, 29, 130);
/* oklch */ color: oklch(43.5% 0.175 326.8);
Tailwind
colors: {
  custom: {
    50: '#a865a7',
    500: '#7f1d82',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d82;
$custom-light: #a865a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d82",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 130
  },
  "hsl": {
    "h": 298.218,
    "s": 63.522,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43532,
    "c": 0.17491,
    "h": 326.8
  },
  "luminance": 0.07002
}

Semantic roles & 50–950 ramp

primary
#7F1D82
secondary
#49B546
accent
#E74146
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F1D82

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

Preview Lab → · Contrast checker → · Palette generator →

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