#7E176D#7E176D

#7E176D is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.164 H 336.1°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#7E176D
RGBrgb(126, 23, 109)
HSLhsl(310, 69%, 29%)
HSVhsv(310, 82%, 49%)
CMYKcmyk(0%, 81.7%, 13.5%, 50.6%)
CIE-LABlab(29.80, 51.12, -24.42)
CIE-LCHlch(29.80, 56.65, 334.47°)
OKLaboklab(41.67% 0.1501 -0.0667)
OKLCHoklch(41.67% 0.164 336.1)
XYZxyz(11.6711, 6.1536, 15.0381)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E176D #177E28
analogous
#5C177E #7E176D #7E173A
triadic
#7E176D #6D7E17 #176D7E
tetradic
#7E176D #7E5C17 #177E28 #173A7E
square
#7E176D #7E5C17 #177E28 #173A7E
split-complementary
#7E176D #3A7E17 #177E5C
monochromatic
#1A0516 #4A0E40 #7E176D #B2209A #DA35BF

Accessibility & contrast

On white

9.41
#7E176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E176D
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E176D#FFFFFF#000000##FFFFFF
##7E176D1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193C6F
Deuteranopia (green-blind)
#3F4C6B
Tritanopia (blue-blind)
#852041
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e176d;
/* rgb */ color: rgb(126, 23, 109);
/* oklch */ color: oklch(41.7% 0.164 336.1);
Tailwind
colors: {
  custom: {
    50: '#a76297',
    500: '#7e176d',
    950: '#000000',
  },
}
SCSS
$custom: #7e176d;
$custom-light: #a76297;
$custom-dark: #000000;
JSON
{
  "hex": "#7e176d",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 309.903,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41666,
    "c": 0.16426,
    "h": 336.1
  },
  "luminance": 0.06153
}

Semantic roles & 50–950 ramp

primary
#7E176D
secondary
#3EB351
accent
#EC593C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E176D

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

Preview Lab → · Contrast checker → · Palette generator →

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