#7E167B#7E167B

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

Color values

HEX#7E167B
RGBrgb(126, 22, 123)
HSLhsl(302, 70%, 29%)
HSVhsv(302, 83%, 49%)
CMYKcmyk(0%, 82.5%, 2.4%, 50.6%)
CIE-LABlab(30.50, 53.62, -32.22)
CIE-LCHlch(30.50, 62.56, 329.00°)
OKLaboklab(42.42% 0.1512 -0.0892)
OKLCHoklch(42.42% 0.176 329.5)
XYZxyz(12.4662, 6.4405, 19.3216)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E167B #167E19
analogous
#4D167E #7E167B #7E1647
triadic
#7E167B #7B7E16 #167B7E
tetradic
#7E167B #7E4D16 #167E19 #16477E
square
#7E167B #7E4D16 #167E19 #16477E
split-complementary
#7E167B #477E16 #167E4D
monochromatic
#1A0519 #4A0D48 #7E167B #B21FAE #DB33D7

Accessibility & contrast

On white

9.18
#7E167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E167B
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E167B#FFFFFF#000000##FFFFFF
##7E167B1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7E
Deuteranopia (green-blind)
#374C79
Tritanopia (blue-blind)
#832749
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e167b;
/* rgb */ color: rgb(126, 22, 123);
/* oklch */ color: oklch(42.4% 0.176 329.5);
Tailwind
colors: {
  custom: {
    50: '#a762a1',
    500: '#7e167b',
    950: '#000000',
  },
}
SCSS
$custom: #7e167b;
$custom-light: #a762a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e167b",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 301.731,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42424,
    "c": 0.17558,
    "h": 329.5
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#7E167B
secondary
#3DB340
accent
#ED403B
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E167B

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

Preview Lab → · Contrast checker → · Palette generator →

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