#7E1680#7E1680

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

Color values

HEX#7E1680
RGBrgb(126, 22, 128)
HSLhsl(299, 71%, 29%)
HSVhsv(299, 83%, 50%)
CMYKcmyk(1.6%, 82.8%, 0%, 49.8%)
CIE-LABlab(30.80, 54.46, -34.88)
CIE-LCHlch(30.80, 64.67, 327.36°)
OKLaboklab(42.74% 0.151 -0.0969)
OKLCHoklch(42.74% 0.179 327.3)
XYZxyz(12.7872, 6.5689, 21.0123)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1680 #188016
analogous
#491680 #7E1680 #80164D
triadic
#7E1680 #807E16 #16807E
tetradic
#7E1680 #804916 #188016 #164D80
square
#7E1680 #804916 #188016 #164D80
split-complementary
#7E1680 #4D8016 #168049
monochromatic
#1A041A #4B0D4C #7E1680 #B11FB4 #D934DC

Accessibility & contrast

On white

9.08
#7E1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1680
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1680#FFFFFF#000000##FFFFFF
##7E16801.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1680;
/* rgb */ color: rgb(126, 22, 128);
/* oklch */ color: oklch(42.7% 0.179 327.3);
Tailwind
colors: {
  custom: {
    50: '#a762a5',
    500: '#7e1680',
    950: '#000000',
  },
}
SCSS
$custom: #7e1680;
$custom-light: #a762a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1680",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 298.868,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42741,
    "c": 0.17944,
    "h": 327.3
  },
  "luminance": 0.06568
}

Semantic roles & 50–950 ramp

primary
#7E1680
secondary
#3FB53D
accent
#ED3A3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1680

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

Preview Lab → · Contrast checker → · Palette generator →

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