#7E177D#7E177D

#7E177D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.176 H 328.6°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7E177D
RGBrgb(126, 23, 125)
HSLhsl(301, 69%, 29%)
HSVhsv(301, 82%, 49%)
CMYKcmyk(0%, 81.7%, 0.8%, 50.6%)
CIE-LABlab(30.71, 53.68, -33.14)
CIE-LCHlch(30.71, 63.09, 328.31°)
OKLaboklab(42.62% 0.1504 -0.0919)
OKLCHoklch(42.62% 0.176 328.6)
XYZxyz(12.6121, 6.5300, 19.9942)
Luminance0.0653 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E177D #177E18
analogous
#4C177E #7E177D #7E1749
triadic
#7E177D #7D7E17 #177D7E
tetradic
#7E177D #7E4C17 #177E18 #17497E
square
#7E177D #7E4C17 #177E18 #17497E
split-complementary
#7E177D #497E17 #177E4C
monochromatic
#1A051A #4A0E4A #7E177D #B220B0 #DA35D9

Accessibility & contrast

On white

9.11
#7E177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E177D
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E177D#FFFFFF#000000##FFFFFF
##7E177D1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#82294A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e177d;
/* rgb */ color: rgb(126, 23, 125);
/* oklch */ color: oklch(42.6% 0.176 328.6);
Tailwind
colors: {
  custom: {
    50: '#a763a3',
    500: '#7e177d',
    950: '#000000',
  },
}
SCSS
$custom: #7e177d;
$custom-light: #a763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e177d",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 300.583,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42616,
    "c": 0.17624,
    "h": 328.6
  },
  "luminance": 0.06529
}

Semantic roles & 50–950 ramp

primary
#7E177D
secondary
#3EB33F
accent
#EC3E3C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E177D

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

Preview Lab → · Contrast checker → · Palette generator →

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