#7E1381#7E1381

#7E1381 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.183 H 326.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#7E1381
RGBrgb(126, 19, 129)
HSLhsl(298, 74%, 29%)
HSVhsv(298, 85%, 51%)
CMYKcmyk(2.3%, 85.3%, 0%, 49.4%)
CIE-LABlab(30.61, 55.38, -35.82)
CIE-LCHlch(30.61, 65.95, 327.11°)
OKLaboklab(42.62% 0.153 -0.0997)
OKLCHoklch(42.62% 0.183 326.9)
XYZxyz(12.7993, 6.4873, 21.3427)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1381 #168113
analogous
#471381 #7E1381 #81134D
triadic
#7E1381 #817E13 #13817E
tetradic
#7E1381 #814713 #168113 #134D81
square
#7E1381 #814713 #168113 #134D81
split-complementary
#7E1381 #4D8113 #138147
monochromatic
#1A041B #4A0B4C #7E1381 #B21BB6 #DB2EE0

Accessibility & contrast

On white

9.14
#7E1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1381
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1381#FFFFFF#000000##FFFFFF
##7E13811.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004084
Deuteranopia (green-blind)
#324C7F
Tritanopia (blue-blind)
#82294C
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1381;
/* rgb */ color: rgb(126, 19, 129);
/* oklch */ color: oklch(42.6% 0.183 326.9);
Tailwind
colors: {
  custom: {
    50: '#a762a6',
    500: '#7e1381',
    950: '#000000',
  },
}
SCSS
$custom: #7e1381;
$custom-light: #a762a6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1381",
  "rgb": {
    "r": 126,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 298.364,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42623,
    "c": 0.18263,
    "h": 326.9
  },
  "luminance": 0.06486
}

Semantic roles & 50–950 ramp

primary
#7E1381
secondary
#3DB63A
accent
#F1373C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E1381

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

Preview Lab → · Contrast checker → · Palette generator →

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