#7E1880#7E1880

#7E1880 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.9% C 0.178 H 327.3°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7E1880
RGBrgb(126, 24, 128)
HSLhsl(299, 68%, 30%)
HSVhsv(299, 81%, 50%)
CMYKcmyk(1.6%, 81.3%, 0%, 49.8%)
CIE-LABlab(30.99, 53.91, -34.58)
CIE-LCHlch(30.99, 64.05, 327.32°)
OKLaboklab(42.87% 0.1495 -0.0961)
OKLCHoklch(42.87% 0.178 327.3)
XYZxyz(12.8269, 6.6483, 21.0256)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1880 #1A8018
analogous
#4A1880 #7E1880 #80184E
triadic
#7E1880 #807E18 #18807E
tetradic
#7E1880 #804A18 #1A8018 #184E80
square
#7E1880 #804A18 #1A8018 #184E80
split-complementary
#7E1880 #4E8018 #18804A
monochromatic
#19051A #4B0E4C #7E1880 #B122B4 #D739DA

Accessibility & contrast

On white

9.02
#7E1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1880
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1880#FFFFFF#000000##FFFFFF
##7E18801.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004183
Deuteranopia (green-blind)
#354D7E
Tritanopia (blue-blind)
#822B4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1880;
/* rgb */ color: rgb(126, 24, 128);
/* oklch */ color: oklch(42.9% 0.178 327.3);
Tailwind
colors: {
  custom: {
    50: '#a763a5',
    500: '#7e1880',
    950: '#000000',
  },
}
SCSS
$custom: #7e1880;
$custom-light: #a763a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1880",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 298.846,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42874,
    "c": 0.17769,
    "h": 327.3
  },
  "luminance": 0.06647
}

Semantic roles & 50–950 ramp

primary
#7E1880
secondary
#42B440
accent
#EB3D40
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1880

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

Preview Lab → · Contrast checker → · Palette generator →

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