#7E1776#7E1776

#7E1776 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.171 H 331.7°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7E1776
RGBrgb(126, 23, 118)
HSLhsl(305, 69%, 29%)
HSVhsv(305, 82%, 49%)
CMYKcmyk(0%, 81.7%, 6.3%, 50.6%)
CIE-LABlab(30.30, 52.53, -29.38)
CIE-LCHlch(30.30, 60.19, 330.79°)
OKLaboklab(42.19% 0.1505 -0.081)
OKLCHoklch(42.19% 0.171 331.7)
XYZxyz(12.1806, 6.3574, 17.7216)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1776 #177E1F
analogous
#53177E #7E1776 #7E1743
triadic
#7E1776 #767E17 #17767E
tetradic
#7E1776 #7E5317 #177E1F #17437E
square
#7E1776 #7E5317 #177E1F #17437E
split-complementary
#7E1776 #437E17 #177E53
monochromatic
#1A0518 #4A0E46 #7E1776 #B220A6 #DA35CD

Accessibility & contrast

On white

9.25
#7E1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E1776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1776
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1776#FFFFFF#000000##FFFFFF
##7E17761.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3E78
Deuteranopia (green-blind)
#3A4C74
Tritanopia (blue-blind)
#842546
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1776;
/* rgb */ color: rgb(126, 23, 118);
/* oklch */ color: oklch(42.2% 0.171 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7629e',
    500: '#7e1776',
    950: '#000000',
  },
}
SCSS
$custom: #7e1776;
$custom-light: #a7629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1776",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 304.66,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42186,
    "c": 0.17089,
    "h": 331.7
  },
  "luminance": 0.06356
}

Semantic roles & 50–950 ramp

primary
#7E1776
secondary
#3EB347
accent
#EC4A3C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1776

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

Preview Lab → · Contrast checker → · Palette generator →

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