#7E166F#7E166F

#7E166F is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.7% C 0.167 H 335.0°. Best body text is #FFFFFF at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#7E166F
RGBrgb(126, 22, 111)
HSLhsl(309, 70%, 29%)
HSVhsv(309, 83%, 49%)
CMYKcmyk(0%, 82.5%, 11.9%, 50.6%)
CIE-LABlab(29.81, 51.70, -25.68)
CIE-LCHlch(29.81, 57.73, 333.58°)
OKLaboklab(41.71% 0.1511 -0.0703)
OKLCHoklch(41.71% 0.167 335)
XYZxyz(11.7605, 6.1582, 15.6051)
Luminance0.0616 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E166F #167E25
analogous
#59167E #7E166F #7E163B
triadic
#7E166F #6F7E16 #166F7E
tetradic
#7E166F #7E5916 #167E25 #163B7E
square
#7E166F #7E5916 #167E25 #163B7E
split-complementary
#7E166F #3B7E16 #167E59
monochromatic
#1A0517 #4A0D41 #7E166F #B21F9D #DB33C3

Accessibility & contrast

On white

9.41
#7E166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E166F
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E166F#FFFFFF#000000##FFFFFF
##7E166F1.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153D71
Deuteranopia (green-blind)
#3D4C6D
Tritanopia (blue-blind)
#852042
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e166f;
/* rgb */ color: rgb(126, 22, 111);
/* oklch */ color: oklch(41.7% 0.167 335.0);
Tailwind
colors: {
  custom: {
    50: '#a76298',
    500: '#7e166f',
    950: '#000000',
  },
}
SCSS
$custom: #7e166f;
$custom-light: #a76298;
$custom-dark: #000000;
JSON
{
  "hex": "#7e166f",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 308.654,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.4171,
    "c": 0.16664,
    "h": 335
  },
  "luminance": 0.06157
}

Semantic roles & 50–950 ramp

primary
#7E166F
secondary
#3DB34E
accent
#ED543B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E166F

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

Preview Lab → · Contrast checker → · Palette generator →

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