#7E1B80#7E1B80

#7E1B80 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.1% C 0.175 H 327.2°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7E1B80
RGBrgb(126, 27, 128)
HSLhsl(299, 65%, 30%)
HSVhsv(299, 79%, 50%)
CMYKcmyk(1.6%, 78.9%, 0%, 49.8%)
CIE-LABlab(31.30, 53.03, -34.09)
CIE-LCHlch(31.30, 63.04, 327.26°)
OKLaboklab(43.09% 0.147 -0.0947)
OKLCHoklch(43.09% 0.175 327.2)
XYZxyz(12.8922, 6.7789, 21.0473)
Luminance0.0678 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B80 #1D801B
analogous
#4B1B80 #7E1B80 #801B4F
triadic
#7E1B80 #807E1B #1B807E
tetradic
#7E1B80 #804B1B #1D801B #1B4F80
square
#7E1B80 #804B1B #1D801B #1B4F80
split-complementary
#7E1B80 #4F801B #1B804B
monochromatic
#1A061B #4C104D #7E1B80 #B026B3 #D33FD6

Accessibility & contrast

On white

8.91
#7E1B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E1B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B80
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B80#FFFFFF#000000##FFFFFF
##7E1B801.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004283
Deuteranopia (green-blind)
#364E7E
Tritanopia (blue-blind)
#822C4D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1b80;
/* rgb */ color: rgb(126, 27, 128);
/* oklch */ color: oklch(43.1% 0.175 327.2);
Tailwind
colors: {
  custom: {
    50: '#a764a5',
    500: '#7e1b80',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b80;
$custom-light: #a764a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b80",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 128
  },
  "hsl": {
    "h": 298.812,
    "s": 65.161,
    "l": 30.392
  },
  "oklch": {
    "l": 0.43091,
    "c": 0.17484,
    "h": 327.2
  },
  "luminance": 0.06778
}

Semantic roles & 50–950 ramp

primary
#7E1B80
secondary
#45B443
accent
#E84043
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1B80

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

Preview Lab → · Contrast checker → · Palette generator →

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