#7E1673#7E1673

#7E1673 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.170 H 333.1°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7E1673
RGBrgb(126, 22, 115)
HSLhsl(306, 70%, 29%)
HSVhsv(306, 83%, 49%)
CMYKcmyk(0%, 82.5%, 8.7%, 50.6%)
CIE-LABlab(30.03, 52.33, -27.89)
CIE-LCHlch(30.03, 59.29, 331.94°)
OKLaboklab(41.94% 0.1512 -0.0766)
OKLCHoklch(41.94% 0.17 333.1)
XYZxyz(11.9857, 6.2483, 16.7911)
Luminance0.0625 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1673 #167E21
analogous
#55167E #7E1673 #7E163F
triadic
#7E1673 #737E16 #16737E
tetradic
#7E1673 #7E5516 #167E21 #163F7E
square
#7E1673 #7E5516 #167E21 #163F7E
split-complementary
#7E1673 #3F7E16 #167E55
monochromatic
#1A0518 #4A0D43 #7E1673 #B21FA3 #DB33CA

Accessibility & contrast

On white

9.34
#7E1673 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E1673 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1673
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1673#FFFFFF#000000##FFFFFF
##7E16731.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103D75
Deuteranopia (green-blind)
#3C4C71
Tritanopia (blue-blind)
#842344
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1673;
/* rgb */ color: rgb(126, 22, 115);
/* oklch */ color: oklch(41.9% 0.170 333.1);
Tailwind
colors: {
  custom: {
    50: '#a7629b',
    500: '#7e1673',
    950: '#000000',
  },
}
SCSS
$custom: #7e1673;
$custom-light: #a7629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1673",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 115
  },
  "hsl": {
    "h": 306.346,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41941,
    "c": 0.16955,
    "h": 333.1
  },
  "luminance": 0.06247
}

Semantic roles & 50–950 ramp

primary
#7E1673
secondary
#3DB349
accent
#ED4E3B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1673

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

Preview Lab → · Contrast checker → · Palette generator →

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