#7E1681#7E1681

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

Color values

HEX#7E1681
RGBrgb(126, 22, 129)
HSLhsl(298, 71%, 30%)
HSVhsv(298, 83%, 51%)
CMYKcmyk(2.3%, 82.9%, 0%, 49.4%)
CIE-LABlab(30.87, 54.63, -35.41)
CIE-LCHlch(30.87, 65.10, 327.05°)
OKLaboklab(42.81% 0.1509 -0.0985)
OKLCHoklch(42.81% 0.18 326.9)
XYZxyz(12.8533, 6.5954, 21.3607)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1681 #198116
analogous
#491681 #7E1681 #81164E
triadic
#7E1681 #817E16 #16817E
tetradic
#7E1681 #814916 #198116 #164E81
square
#7E1681 #814916 #198116 #164E81
split-complementary
#7E1681 #4E8116 #168149
monochromatic
#1A041A #4B0D4D #7E1681 #B11FB5 #D835DD

Accessibility & contrast

On white

9.06
#7E1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1681
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1681#FFFFFF#000000##FFFFFF
##7E16811.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#334D7F
Tritanopia (blue-blind)
#822A4D
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1681;
/* rgb */ color: rgb(126, 22, 129);
/* oklch */ color: oklch(42.8% 0.180 326.9);
Tailwind
colors: {
  custom: {
    50: '#a762a6',
    500: '#7e1681',
    950: '#000000',
  },
}
SCSS
$custom: #7e1681;
$custom-light: #a762a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1681",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 298.318,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42805,
    "c": 0.18023,
    "h": 326.9
  },
  "luminance": 0.06594
}

Semantic roles & 50–950 ramp

primary
#7E1681
secondary
#41B63D
accent
#EE3A3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1681

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

Preview Lab → · Contrast checker → · Palette generator →

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