#7E1580#7E1580

#7E1580 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.180 H 327.3°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7E1580
RGBrgb(126, 21, 128)
HSLhsl(299, 72%, 29%)
HSVhsv(299, 84%, 50%)
CMYKcmyk(1.6%, 83.6%, 0%, 49.8%)
CIE-LABlab(30.72, 54.72, -35.02)
CIE-LCHlch(30.72, 64.96, 327.38°)
OKLaboklab(42.68% 0.1517 -0.0974)
OKLCHoklch(42.68% 0.18 327.3)
XYZxyz(12.7684, 6.5314, 21.0061)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1580 #178015
analogous
#491580 #7E1580 #80154C
triadic
#7E1580 #807E15 #15807E
tetradic
#7E1580 #804915 #178015 #154C80
square
#7E1580 #804915 #178015 #154C80
split-complementary
#7E1580 #4C8015 #158049
monochromatic
#1A041A #4A0C4B #7E1580 #B21EB5 #DA32DD

Accessibility & contrast

On white

9.11
#7E1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1580
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1580#FFFFFF#000000##FFFFFF
##7E15801.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#344D7E
Tritanopia (blue-blind)
#82294C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1580;
/* rgb */ color: rgb(126, 21, 128);
/* oklch */ color: oklch(42.7% 0.180 327.3);
Tailwind
colors: {
  custom: {
    50: '#a762a5',
    500: '#7e1580',
    950: '#000000',
  },
}
SCSS
$custom: #7e1580;
$custom-light: #a762a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1580",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 298.879,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42677,
    "c": 0.18027,
    "h": 327.3
  },
  "luminance": 0.0653
}

Semantic roles & 50–950 ramp

primary
#7E1580
secondary
#3EB53C
accent
#EF393D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1580

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

Preview Lab → · Contrast checker → · Palette generator →

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