#7E1B94#7E1B94

#7E1B94 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.4% C 0.191 H 319.3°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#7E1B94
RGBrgb(126, 27, 148)
HSLhsl(289, 69%, 34%)
HSVhsv(289, 82%, 58%)
CMYKcmyk(14.9%, 81.8%, 0%, 42%)
CIE-LABlab(32.61, 56.66, -44.39)
CIE-LCHlch(32.61, 71.98, 321.92°)
OKLaboklab(44.44% 0.145 -0.1248)
OKLCHoklch(44.44% 0.191 319.3)
XYZxyz(14.3407, 7.3583, 28.6762)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1B94 #31941B
analogous
#421B94 #7E1B94 #941B6E
triadic
#7E1B94 #947E1B #1B947E
tetradic
#7E1B94 #94421B #31941B #1B6E94
square
#7E1B94 #94421B #31941B #1B6E94
split-complementary
#7E1B94 #6E941B #1B9442
monochromatic
#26082C #521260 #7E1B94 #AA24C8 #C34BDE

Accessibility & contrast

On white

8.50
#7E1B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1B94
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1B94#FFFFFF#000000##FFFFFF
##7E1B941.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004697
Deuteranopia (green-blind)
#255091
Tritanopia (blue-blind)
#7E3758
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e1b94;
/* rgb */ color: rgb(126, 27, 148);
/* oklch */ color: oklch(44.4% 0.191 319.3);
Tailwind
colors: {
  custom: {
    50: '#a765b4',
    500: '#7e1b94',
    950: '#000000',
  },
}
SCSS
$custom: #7e1b94;
$custom-light: #a765b4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1b94",
  "rgb": {
    "r": 126,
    "g": 27,
    "b": 148
  },
  "hsl": {
    "h": 289.091,
    "s": 69.143,
    "l": 34.314
  },
  "oklch": {
    "l": 0.44438,
    "c": 0.19131,
    "h": 319.3
  },
  "luminance": 0.07358
}

Semantic roles & 50–950 ramp

primary
#7E1B94
secondary
#60C04B
accent
#EC3C5C
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1B94

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

Preview Lab → · Contrast checker → · Palette generator →

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