#7E176E#7E176E

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

Color values

HEX#7E176E
RGBrgb(126, 23, 110)
HSLhsl(309, 69%, 29%)
HSVhsv(309, 82%, 49%)
CMYKcmyk(0%, 81.7%, 12.7%, 50.6%)
CIE-LABlab(29.85, 51.27, -24.98)
CIE-LCHlch(29.85, 57.03, 334.03°)
OKLaboklab(41.72% 0.1502 -0.0683)
OKLCHoklch(41.72% 0.165 335.6)
XYZxyz(11.7252, 6.1753, 15.3233)
Luminance0.0617 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E176E #177E27
analogous
#5B177E #7E176E #7E173B
triadic
#7E176E #6E7E17 #176E7E
tetradic
#7E176E #7E5B17 #177E27 #173B7E
square
#7E176E #7E5B17 #177E27 #173B7E
split-complementary
#7E176E #3B7E17 #177E5B
monochromatic
#1A0517 #4A0E41 #7E176E #B2209B #DA35C1

Accessibility & contrast

On white

9.40
#7E176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E176E
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E176E#FFFFFF#000000##FFFFFF
##7E176E1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173D70
Deuteranopia (green-blind)
#3E4C6C
Tritanopia (blue-blind)
#852042
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e176e;
/* rgb */ color: rgb(126, 23, 110);
/* oklch */ color: oklch(41.7% 0.165 335.6);
Tailwind
colors: {
  custom: {
    50: '#a76298',
    500: '#7e176e',
    950: '#000000',
  },
}
SCSS
$custom: #7e176e;
$custom-light: #a76298;
$custom-dark: #000000;
JSON
{
  "hex": "#7e176e",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 309.32,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41722,
    "c": 0.16498,
    "h": 335.6
  },
  "luminance": 0.06174
}

Semantic roles & 50–950 ramp

primary
#7E176E
secondary
#3EB350
accent
#EC573C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E176E

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

Preview Lab → · Contrast checker → · Palette generator →

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