#7E1784#7E1784

#7E1784 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 43.1% C 0.182 H 325.6°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#7E1784
RGBrgb(126, 23, 132)
HSLhsl(297, 70%, 30%)
HSVhsv(297, 83%, 52%)
CMYKcmyk(4.5%, 82.6%, 0%, 48.2%)
CIE-LABlab(31.15, 54.88, -36.83)
CIE-LCHlch(31.15, 66.09, 326.13°)
OKLaboklab(43.07% 0.15 -0.1026)
OKLCHoklch(43.07% 0.182 325.6)
XYZxyz(13.0752, 6.7153, 22.4328)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1784 #1D8417
analogous
#471784 #7E1784 #841754
triadic
#7E1784 #847E17 #17847E
tetradic
#7E1784 #844717 #1D8417 #175484
square
#7E1784 #844717 #1D8417 #175484
split-complementary
#7E1784 #548417 #178447
monochromatic
#1A051C #4C0E50 #7E1784 #B020B8 #D339DC

Accessibility & contrast

On white

8.96
#7E1784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E1784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1784
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1784#FFFFFF#000000##FFFFFF
##7E17841.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004187
Deuteranopia (green-blind)
#324D82
Tritanopia (blue-blind)
#812C4E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1784;
/* rgb */ color: rgb(126, 23, 132);
/* oklch */ color: oklch(43.1% 0.182 325.6);
Tailwind
colors: {
  custom: {
    50: '#a763a8',
    500: '#7e1784',
    950: '#000000',
  },
}
SCSS
$custom: #7e1784;
$custom-light: #a763a8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1784",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 296.697,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.43066,
    "c": 0.18173,
    "h": 325.6
  },
  "luminance": 0.06714
}

Semantic roles & 50–950 ramp

primary
#7E1784
secondary
#45B83F
accent
#ED3B45
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1784

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

Preview Lab → · Contrast checker → · Palette generator →

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