#7E1671#7E1671

#7E1671 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.168 H 334.1°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#7E1671
RGBrgb(126, 22, 113)
HSLhsl(308, 70%, 29%)
HSVhsv(308, 83%, 49%)
CMYKcmyk(0%, 82.5%, 10.3%, 50.6%)
CIE-LABlab(29.92, 52.01, -26.79)
CIE-LCHlch(29.92, 58.51, 332.75°)
OKLaboklab(41.82% 0.1512 -0.0735)
OKLCHoklch(41.82% 0.168 334.1)
XYZxyz(11.8719, 6.2028, 16.1916)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1671 #167E23
analogous
#57167E #7E1671 #7E163D
triadic
#7E1671 #717E16 #16717E
tetradic
#7E1671 #7E5716 #167E23 #163D7E
square
#7E1671 #7E5716 #167E23 #163D7E
split-complementary
#7E1671 #3D7E16 #167E57
monochromatic
#1A0517 #4A0D42 #7E1671 #B21FA0 #DB33C6

Accessibility & contrast

On white

9.37
#7E1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1671
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1671#FFFFFF#000000##FFFFFF
##7E16711.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#133D73
Deuteranopia (green-blind)
#3C4C6F
Tritanopia (blue-blind)
#842143
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1671;
/* rgb */ color: rgb(126, 22, 113);
/* oklch */ color: oklch(41.8% 0.168 334.1);
Tailwind
colors: {
  custom: {
    50: '#a7629a',
    500: '#7e1671',
    950: '#000000',
  },
}
SCSS
$custom: #7e1671;
$custom-light: #a7629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1671",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 307.5,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41824,
    "c": 0.16808,
    "h": 334.1
  },
  "luminance": 0.06202
}

Semantic roles & 50–950 ramp

primary
#7E1671
secondary
#3DB34C
accent
#ED513B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1671

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

Preview Lab → · Contrast checker → · Palette generator →

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