#7E1D80#7E1D80

#7E1D80 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.2% C 0.173 H 327.2°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#7E1D80
RGBrgb(126, 29, 128)
HSLhsl(299, 63%, 31%)
HSVhsv(299, 77%, 50%)
CMYKcmyk(1.6%, 77.3%, 0%, 49.8%)
CIE-LABlab(31.52, 52.40, -33.74)
CIE-LCHlch(31.52, 62.32, 327.22°)
OKLaboklab(43.25% 0.1452 -0.0937)
OKLCHoklch(43.25% 0.173 327.2)
XYZxyz(12.9396, 6.8738, 21.0631)
Luminance0.0687 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D80 #1F801D
analogous
#4C1D80 #7E1D80 #801D50
triadic
#7E1D80 #807E1D #1D807E
tetradic
#7E1D80 #804C1D #1F801D #1D5080
square
#7E1D80 #804C1D #1F801D #1D5080
split-complementary
#7E1D80 #50801D #1D804C
monochromatic
#1C061C #4D124E #7E1D80 #AF28B2 #D143D4

Accessibility & contrast

On white

8.84
#7E1D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1D80
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D80#FFFFFF#000000##FFFFFF
##7E1D801.008.842.378.84
#FFFFFF8.841.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#024283
Deuteranopia (green-blind)
#374E7E
Tritanopia (blue-blind)
#822E4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1d80;
/* rgb */ color: rgb(126, 29, 128);
/* oklch */ color: oklch(43.2% 0.173 327.2);
Tailwind
colors: {
  custom: {
    50: '#a765a5',
    500: '#7e1d80',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d80;
$custom-light: #a765a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d80",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 128
  },
  "hsl": {
    "h": 298.788,
    "s": 63.057,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43248,
    "c": 0.17281,
    "h": 327.2
  },
  "luminance": 0.06873
}

Semantic roles & 50–950 ramp

primary
#7E1D80
secondary
#48B345
accent
#E64245
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1D80

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

Preview Lab → · Contrast checker → · Palette generator →

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