#7E176F#7E176F

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

Color values

HEX#7E176F
RGBrgb(126, 23, 111)
HSLhsl(309, 69%, 29%)
HSVhsv(309, 82%, 49%)
CMYKcmyk(0%, 81.7%, 11.9%, 50.6%)
CIE-LABlab(29.90, 51.43, -25.53)
CIE-LCHlch(29.90, 57.42, 333.60°)
OKLaboklab(41.78% 0.1503 -0.0699)
OKLCHoklch(41.78% 0.166 335.1)
XYZxyz(11.7800, 6.1972, 15.6116)
Luminance0.0620 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E176F #177E26
analogous
#5A177E #7E176F #7E173C
triadic
#7E176F #6F7E17 #176F7E
tetradic
#7E176F #7E5A17 #177E26 #173C7E
square
#7E176F #7E5A17 #177E26 #173C7E
split-complementary
#7E176F #3C7E17 #177E5A
monochromatic
#1A0517 #4A0E41 #7E176F #B2209D #DA35C2

Accessibility & contrast

On white

9.38
#7E176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E176F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E176F#FFFFFF#000000##FFFFFF
##7E176F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#163D71
Deuteranopia (green-blind)
#3E4C6D
Tritanopia (blue-blind)
#852142
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e176f;
/* rgb */ color: rgb(126, 23, 111);
/* oklch */ color: oklch(41.8% 0.166 335.1);
Tailwind
colors: {
  custom: {
    50: '#a76298',
    500: '#7e176f',
    950: '#000000',
  },
}
SCSS
$custom: #7e176f;
$custom-light: #a76298;
$custom-dark: #000000;
JSON
{
  "hex": "#7e176f",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 308.738,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.41779,
    "c": 0.16571,
    "h": 335.1
  },
  "luminance": 0.06196
}

Semantic roles & 50–950 ramp

primary
#7E176F
secondary
#3EB34F
accent
#EC553C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E176F

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

Preview Lab → · Contrast checker → · Palette generator →

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