#7E167E#7E167E

#7E167E is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.178 H 328.2°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#7E167E
RGBrgb(126, 22, 126)
HSLhsl(300, 70%, 29%)
HSVhsv(300, 83%, 49%)
CMYKcmyk(0%, 82.5%, 0%, 50.6%)
CIE-LABlab(30.68, 54.12, -33.82)
CIE-LCHlch(30.68, 63.82, 328.00°)
OKLaboklab(42.61% 0.1511 -0.0939)
OKLCHoklch(42.61% 0.178 328.2)
XYZxyz(12.6568, 6.5168, 20.3259)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E167E #167E16
analogous
#4A167E #7E167E #7E164A
triadic
#7E167E #7E7E16 #167E7E
tetradic
#7E167E #7E4A16 #167E16 #164A7E
square
#7E167E #7E4A16 #167E16 #164A7E
split-complementary
#7E167E #4A7E16 #167E4A
monochromatic
#1A051A #4A0D4A #7E167E #B21FB2 #DB33DB

Accessibility & contrast

On white

9.12
#7E167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E167E
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E167E#FFFFFF#000000##FFFFFF
##7E167E1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e167e;
/* rgb */ color: rgb(126, 22, 126);
/* oklch */ color: oklch(42.6% 0.178 328.2);
Tailwind
colors: {
  custom: {
    50: '#a762a4',
    500: '#7e167e',
    950: '#000000',
  },
}
SCSS
$custom: #7e167e;
$custom-light: #a762a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e167e",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42613,
    "c": 0.17789,
    "h": 328.2
  },
  "luminance": 0.06516
}

Semantic roles & 50–950 ramp

primary
#7E167E
secondary
#3DB33D
accent
#ED3B3B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E167E

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

Preview Lab → · Contrast checker → · Palette generator →

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