#7E167F#7E167F

#7E167F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.7% C 0.179 H 327.7°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7E167F
RGBrgb(126, 22, 127)
HSLhsl(299, 70%, 29%)
HSVhsv(299, 83%, 50%)
CMYKcmyk(0.8%, 82.7%, 0%, 50.2%)
CIE-LABlab(30.74, 54.29, -34.35)
CIE-LCHlch(30.74, 64.24, 327.68°)
OKLaboklab(42.68% 0.1511 -0.0954)
OKLCHoklch(42.68% 0.179 327.7)
XYZxyz(12.7217, 6.5427, 20.6674)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E167F #177F16
analogous
#4A167F #7E167F #7F164C
triadic
#7E167F #7F7E16 #167F7E
tetradic
#7E167F #7F4A16 #177F16 #164C7F
square
#7E167F #7F4A16 #177F16 #164C7F
split-complementary
#7E167F #4C7F16 #167F4A
monochromatic
#1A051A #4A0D4B #7E167F #B21FB3 #DA34DC

Accessibility & contrast

On white

9.10
#7E167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E167F
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E167F#FFFFFF#000000##FFFFFF
##7E167F1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e167f;
/* rgb */ color: rgb(126, 22, 127);
/* oklch */ color: oklch(42.7% 0.179 327.7);
Tailwind
colors: {
  custom: {
    50: '#a762a4',
    500: '#7e167f',
    950: '#000000',
  },
}
SCSS
$custom: #7e167f;
$custom-light: #a762a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e167f",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 299.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42677,
    "c": 0.17866,
    "h": 327.7
  },
  "luminance": 0.06542
}

Semantic roles & 50–950 ramp

primary
#7E167F
secondary
#3EB43D
accent
#ED3B3C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E167F

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

Preview Lab → · Contrast checker → · Palette generator →

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