#7E1780#7E1780

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

Color values

HEX#7E1780
RGBrgb(126, 23, 128)
HSLhsl(299, 70%, 30%)
HSVhsv(299, 82%, 50%)
CMYKcmyk(1.6%, 82%, 0%, 49.8%)
CIE-LABlab(30.90, 54.19, -34.73)
CIE-LCHlch(30.90, 64.36, 327.34°)
OKLaboklab(42.81% 0.1503 -0.0965)
OKLCHoklch(42.81% 0.179 327.3)
XYZxyz(12.8067, 6.6079, 21.0188)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1780 #198017
analogous
#4A1780 #7E1780 #80174E
triadic
#7E1780 #807E17 #17807E
tetradic
#7E1780 #804A17 #198017 #174E80
square
#7E1780 #804A17 #198017 #174E80
split-complementary
#7E1780 #4E8017 #17804A
monochromatic
#1A051A #4B0E4C #7E1780 #B120B4 #D836DB

Accessibility & contrast

On white

9.05
#7E1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1780
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1780#FFFFFF#000000##FFFFFF
##7E17801.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004083
Deuteranopia (green-blind)
#344D7E
Tritanopia (blue-blind)
#822A4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1780;
/* rgb */ color: rgb(126, 23, 128);
/* oklch */ color: oklch(42.8% 0.179 327.3);
Tailwind
colors: {
  custom: {
    50: '#a763a5',
    500: '#7e1780',
    950: '#000000',
  },
}
SCSS
$custom: #7e1780;
$custom-light: #a763a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1780",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 298.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42806,
    "c": 0.17858,
    "h": 327.3
  },
  "luminance": 0.06607
}

Semantic roles & 50–950 ramp

primary
#7E1780
secondary
#41B43E
accent
#EC3B3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1780

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

Preview Lab → · Contrast checker → · Palette generator →

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