#7E1172#7E1172

#7E1172 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.173 H 333.6°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#7E1172
RGBrgb(126, 17, 114)
HSLhsl(307, 76%, 28%)
HSVhsv(307, 87%, 49%)
CMYKcmyk(0%, 86.5%, 9.5%, 50.6%)
CIE-LABlab(29.54, 53.41, -28.02)
CIE-LCHlch(29.54, 60.32, 332.32°)
OKLaboklab(41.58% 0.1549 -0.077)
OKLCHoklch(41.58% 0.173 333.6)
XYZxyz(11.8420, 6.0525, 16.4609)
Luminance0.0605 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1172 #117E1D
analogous
#54117E #7E1172 #7E113B
triadic
#7E1172 #727E11 #11727E
tetradic
#7E1172 #7E5411 #117E1D #113B7E
square
#7E1172 #7E5411 #117E1D #113B7E
split-complementary
#7E1172 #3B7E11 #117E54
monochromatic
#1B0418 #480A41 #7E1172 #B418A3 #E227CD

Accessibility & contrast

On white

9.50
#7E1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7E1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1172
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1172#FFFFFF#000000##FFFFFF
##7E11721.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3C74
Deuteranopia (green-blind)
#3B4B70
Tritanopia (blue-blind)
#841F43
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1172;
/* rgb */ color: rgb(126, 17, 114);
/* oklch */ color: oklch(41.6% 0.173 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7609b',
    500: '#7e1172',
    950: '#000000',
  },
}
SCSS
$custom: #7e1172;
$custom-light: #a7609b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1172",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 306.606,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.41576,
    "c": 0.17296,
    "h": 333.6
  },
  "luminance": 0.06051
}

Semantic roles & 50–950 ramp

primary
#7E1172
secondary
#37B445
accent
#F34A35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1172

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

Preview Lab → · Contrast checker → · Palette generator →

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