#7E1B96#7E1B96

#7E1B96 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.193 H 318.6°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7E1B96
RGBrgb(126, 27, 150)
HSLhsl(288, 69%, 35%)
HSVhsv(288, 82%, 59%)
CMYKcmyk(16%, 82%, 0%, 41.2%)
CIE-LABlab(32.75, 57.04, -45.39)
CIE-LCHlch(32.75, 72.90, 321.49°)
OKLaboklab(44.58% 0.1447 -0.1277)
OKLCHoklch(44.58% 0.193 318.6)
XYZxyz(14.5004, 7.4222, 29.5171)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B96 #33961B
analogous
#411B96 #7E1B96 #961B70
triadic
#7E1B96 #967E1B #1B967E
tetradic
#7E1B96 #96411B #33961B #1B7096
square
#7E1B96 #96411B #33961B #1B7096
split-complementary
#7E1B96 #70961B #1B9641
monochromatic
#27082E #521262 #7E1B96 #AA24CA #C24DDF

Accessibility & contrast

On white

8.45
#7E1B96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E1B96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1B96
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B96#FFFFFF#000000##FFFFFF
##7E1B961.008.452.488.45
#FFFFFF8.451.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004799
Deuteranopia (green-blind)
#235093
Tritanopia (blue-blind)
#7D375A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e1b96;
/* rgb */ color: rgb(126, 27, 150);
/* oklch */ color: oklch(44.6% 0.193 318.6);
Tailwind
colors: {
  custom: {
    50: '#a765b6',
    500: '#7e1b96',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b96;
$custom-light: #a765b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b96",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 150
  },
  "hsl": {
    "h": 288.293,
    "s": 69.492,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44581,
    "c": 0.193,
    "h": 318.6
  },
  "luminance": 0.07421
}

Semantic roles & 50–950 ramp

primary
#7E1B96
secondary
#63C14C
accent
#EC3B5E
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1B96

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

Preview Lab → · Contrast checker → · Palette generator →

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