#7E177B#7E177B

#7E177B is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.175 H 329.5°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7E177B
RGBrgb(126, 23, 123)
HSLhsl(302, 69%, 29%)
HSVhsv(302, 82%, 49%)
CMYKcmyk(0%, 81.7%, 2.4%, 50.6%)
CIE-LABlab(30.59, 53.35, -32.07)
CIE-LCHlch(30.59, 62.25, 328.99°)
OKLaboklab(42.49% 0.1505 -0.0888)
OKLCHoklch(42.49% 0.175 329.5)
XYZxyz(12.4857, 6.4795, 19.3281)
Luminance0.0648 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E177B #177E1A
analogous
#4E177E #7E177B #7E1748
triadic
#7E177B #7B7E17 #177B7E
tetradic
#7E177B #7E4E17 #177E1A #17487E
square
#7E177B #7E4E17 #177E1A #17487E
split-complementary
#7E177B #487E17 #177E4E
monochromatic
#1A0519 #4A0E48 #7E177B #B220AE #DA35D5

Accessibility & contrast

On white

9.15
#7E177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E177B
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E177B#FFFFFF#000000##FFFFFF
##7E177B1.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7E
Deuteranopia (green-blind)
#374D79
Tritanopia (blue-blind)
#832849
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e177b;
/* rgb */ color: rgb(126, 23, 123);
/* oklch */ color: oklch(42.5% 0.175 329.5);
Tailwind
colors: {
  custom: {
    50: '#a762a1',
    500: '#7e177b',
    950: '#000000',
  },
}
SCSS
$custom: #7e177b;
$custom-light: #a762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e177b",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 301.748,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42491,
    "c": 0.17469,
    "h": 329.5
  },
  "luminance": 0.06478
}

Semantic roles & 50–950 ramp

primary
#7E177B
secondary
#3EB342
accent
#EC413C
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E177B

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

Preview Lab → · Contrast checker → · Palette generator →

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