#7E177E#7E177E

#7E177E is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.177 H 328.1°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7E177E
RGBrgb(126, 23, 126)
HSLhsl(300, 69%, 29%)
HSVhsv(300, 82%, 49%)
CMYKcmyk(0%, 81.7%, 0%, 50.6%)
CIE-LABlab(30.77, 53.85, -33.67)
CIE-LCHlch(30.77, 63.51, 327.98°)
OKLaboklab(42.68% 0.1504 -0.0934)
OKLCHoklch(42.68% 0.177 328.1)
XYZxyz(12.6763, 6.5557, 20.3323)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E177E #177E17
analogous
#4B177E #7E177E #7E174B
triadic
#7E177E #7E7E17 #177E7E
tetradic
#7E177E #7E4B17 #177E17 #174B7E
square
#7E177E #7E4B17 #177E17 #174B7E
split-complementary
#7E177E #4B7E17 #177E4B
monochromatic
#1A051A #4A0E4A #7E177E #B220B2 #DA35DA

Accessibility & contrast

On white

9.09
#7E177E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E177E
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E177E#FFFFFF#000000##FFFFFF
##7E177E1.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#82294B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e177e;
/* rgb */ color: rgb(126, 23, 126);
/* oklch */ color: oklch(42.7% 0.177 328.1);
Tailwind
colors: {
  custom: {
    50: '#a763a4',
    500: '#7e177e',
    950: '#000000',
  },
}
SCSS
$custom: #7e177e;
$custom-light: #a763a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e177e",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42679,
    "c": 0.17701,
    "h": 328.1
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#7E177E
secondary
#3EB33E
accent
#EC3C3C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E177E

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

Preview Lab → · Contrast checker → · Palette generator →

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