#7E177A#7E177A

#7E177A is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.174 H 329.9°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#7E177A
RGBrgb(126, 23, 122)
HSLhsl(302, 69%, 29%)
HSVhsv(302, 82%, 49%)
CMYKcmyk(0%, 81.7%, 3.2%, 50.6%)
CIE-LABlab(30.53, 53.18, -31.54)
CIE-LCHlch(30.53, 61.83, 329.33°)
OKLaboklab(42.43% 0.1505 -0.0872)
OKLCHoklch(42.43% 0.174 329.9)
XYZxyz(12.4234, 6.4545, 19.0001)
Luminance0.0645 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E177A #177E1B
analogous
#4F177E #7E177A #7E1747
triadic
#7E177A #7A7E17 #177A7E
tetradic
#7E177A #7E4F17 #177E1B #17477E
square
#7E177A #7E4F17 #177E1B #17477E
split-complementary
#7E177A #477E17 #177E4F
monochromatic
#1A0519 #4A0E48 #7E177A #B220AC #DA35D4

Accessibility & contrast

On white

9.17
#7E177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E177A
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E177A#FFFFFF#000000##FFFFFF
##7E177A1.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033F7D
Deuteranopia (green-blind)
#384D78
Tritanopia (blue-blind)
#832749
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e177a;
/* rgb */ color: rgb(126, 23, 122);
/* oklch */ color: oklch(42.4% 0.174 329.9);
Tailwind
colors: {
  custom: {
    50: '#a762a1',
    500: '#7e177a',
    950: '#000000',
  },
}
SCSS
$custom: #7e177a;
$custom-light: #a762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e177a",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 302.33,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42429,
    "c": 0.17392,
    "h": 329.9
  },
  "luminance": 0.06454
}

Semantic roles & 50–950 ramp

primary
#7E177A
secondary
#3EB343
accent
#EC433C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E177A

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

Preview Lab → · Contrast checker → · Palette generator →

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