#7E1996#7E1996

#7E1996 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.4% C 0.195 H 318.7°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#7E1996
RGBrgb(126, 25, 150)
HSLhsl(288, 71%, 34%)
HSVhsv(288, 83%, 59%)
CMYKcmyk(16%, 83.3%, 0%, 41.2%)
CIE-LABlab(32.55, 57.61, -45.70)
CIE-LCHlch(32.55, 73.54, 321.57°)
OKLaboklab(44.44% 0.1462 -0.1286)
OKLCHoklch(44.44% 0.195 318.7)
XYZxyz(14.4561, 7.3336, 29.5023)
Luminance0.0733 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1996 #319619
analogous
#401996 #7E1996 #961970
triadic
#7E1996 #967E19 #19967E
tetradic
#7E1996 #964019 #319619 #197096
square
#7E1996 #964019 #319619 #197096
split-complementary
#7E1996 #709619 #199640
monochromatic
#26082D #521062 #7E1996 #AA22CA #C349E1

Accessibility & contrast

On white

8.51
#7E1996 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#7E1996 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1996
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1996#FFFFFF#000000##FFFFFF
##7E19961.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#215093
Tritanopia (blue-blind)
#7D3759
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e1996;
/* rgb */ color: rgb(126, 25, 150);
/* oklch */ color: oklch(44.4% 0.195 318.7);
Tailwind
colors: {
  custom: {
    50: '#a865b6',
    500: '#7e1996',
    950: '#000000',
  },
}
SCSS
$custom: #7e1996;
$custom-light: #a865b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1996",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 150
  },
  "hsl": {
    "h": 288.48,
    "s": 71.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44444,
    "c": 0.1947,
    "h": 318.7
  },
  "luminance": 0.07333
}

Semantic roles & 50–950 ramp

primary
#7E1996
secondary
#60C249
accent
#EE3A5C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1996

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

Preview Lab → · Contrast checker → · Palette generator →

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