#7E167A#7E167A

#7E167A is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.175 H 329.9°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#7E167A
RGBrgb(126, 22, 122)
HSLhsl(302, 70%, 29%)
HSVhsv(302, 83%, 49%)
CMYKcmyk(0%, 82.5%, 3.2%, 50.6%)
CIE-LABlab(30.44, 53.45, -31.68)
CIE-LCHlch(30.44, 62.14, 329.34°)
OKLaboklab(42.36% 0.1513 -0.0876)
OKLCHoklch(42.36% 0.175 329.9)
XYZxyz(12.4039, 6.4156, 18.9936)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E167A #167E1A
analogous
#4E167E #7E167A #7E1646
triadic
#7E167A #7A7E16 #167A7E
tetradic
#7E167A #7E4E16 #167E1A #16467E
square
#7E167A #7E4E16 #167E1A #16467E
split-complementary
#7E167A #467E16 #167E4E
monochromatic
#1A0519 #4A0D48 #7E167A #B21FAC #DB33D5

Accessibility & contrast

On white

9.20
#7E167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E167A
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E167A#FFFFFF#000000##FFFFFF
##7E167A1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7D
Deuteranopia (green-blind)
#384C78
Tritanopia (blue-blind)
#832748
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e167a;
/* rgb */ color: rgb(126, 22, 122);
/* oklch */ color: oklch(42.4% 0.175 329.9);
Tailwind
colors: {
  custom: {
    50: '#a762a1',
    500: '#7e167a',
    950: '#000000',
  },
}
SCSS
$custom: #7e167a;
$custom-light: #a762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e167a",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 302.308,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42362,
    "c": 0.17481,
    "h": 329.9
  },
  "luminance": 0.06415
}

Semantic roles & 50–950 ramp

primary
#7E167A
secondary
#3DB341
accent
#ED423B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E167A

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

Preview Lab → · Contrast checker → · Palette generator →

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