#7E177F#7E177F

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

Color values

HEX#7E177F
RGBrgb(126, 23, 127)
HSLhsl(299, 69%, 29%)
HSVhsv(299, 82%, 50%)
CMYKcmyk(0.8%, 81.9%, 0%, 50.2%)
CIE-LABlab(30.84, 54.02, -34.20)
CIE-LCHlch(30.84, 63.94, 327.66°)
OKLaboklab(42.74% 0.1503 -0.095)
OKLCHoklch(42.74% 0.178 327.7)
XYZxyz(12.7412, 6.5817, 20.6739)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E177F #187F17
analogous
#4A177F #7E177F #7F174C
triadic
#7E177F #7F7E17 #177F7E
tetradic
#7E177F #7F4A17 #187F17 #174C7F
square
#7E177F #7F4A17 #187F17 #174C7F
split-complementary
#7E177F #4C7F17 #177F4A
monochromatic
#1A051A #4B0E4B #7E177F #B120B3 #D936DB

Accessibility & contrast

On white

9.07
#7E177F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E177F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E177F
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E177F#FFFFFF#000000##FFFFFF
##7E177F1.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#822A4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e177f;
/* rgb */ color: rgb(126, 23, 127);
/* oklch */ color: oklch(42.7% 0.178 327.7);
Tailwind
colors: {
  custom: {
    50: '#a763a4',
    500: '#7e177f',
    950: '#000000',
  },
}
SCSS
$custom: #7e177f;
$custom-light: #a763a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e177f",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 127
  },
  "hsl": {
    "h": 299.423,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42742,
    "c": 0.1778,
    "h": 327.7
  },
  "luminance": 0.06581
}

Semantic roles & 50–950 ramp

primary
#7E177F
secondary
#3FB43E
accent
#EC3C3D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E177F

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

Preview Lab → · Contrast checker → · Palette generator →

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