#7E167D#7E167D

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

Color values

HEX#7E167D
RGBrgb(126, 22, 125)
HSLhsl(301, 70%, 29%)
HSVhsv(301, 83%, 49%)
CMYKcmyk(0%, 82.5%, 0.8%, 50.6%)
CIE-LABlab(30.62, 53.95, -33.29)
CIE-LCHlch(30.62, 63.39, 328.33°)
OKLaboklab(42.55% 0.1512 -0.0923)
OKLCHoklch(42.55% 0.177 328.6)
XYZxyz(12.5926, 6.4911, 19.9877)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E167D #167E17
analogous
#4B167E #7E167D #7E1649
triadic
#7E167D #7D7E16 #167D7E
tetradic
#7E167D #7E4B16 #167E17 #16497E
square
#7E167D #7E4B16 #167E17 #16497E
split-complementary
#7E167D #497E16 #167E4B
monochromatic
#1A051A #4A0D49 #7E167D #B21FB1 #DB33DA

Accessibility & contrast

On white

9.14
#7E167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E167D
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E167D#FFFFFF#000000##FFFFFF
##7E167D1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#82284A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e167d;
/* rgb */ color: rgb(126, 22, 125);
/* oklch */ color: oklch(42.5% 0.177 328.6);
Tailwind
colors: {
  custom: {
    50: '#a762a3',
    500: '#7e167d',
    950: '#000000',
  },
}
SCSS
$custom: #7e167d;
$custom-light: #a762a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e167d",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 300.577,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42549,
    "c": 0.17712,
    "h": 328.6
  },
  "luminance": 0.0649
}

Semantic roles & 50–950 ramp

primary
#7E167D
secondary
#3DB33E
accent
#ED3C3B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E167D

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

Preview Lab → · Contrast checker → · Palette generator →

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