#7E1871#7E1871

#7E1871 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.166 H 334.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7E1871
RGBrgb(126, 24, 113)
HSLhsl(308, 68%, 29%)
HSVhsv(308, 81%, 49%)
CMYKcmyk(0%, 81%, 10.3%, 50.6%)
CIE-LABlab(30.11, 51.45, -26.48)
CIE-LCHlch(30.11, 57.87, 332.76°)
OKLaboklab(41.96% 0.1495 -0.0726)
OKLCHoklch(41.96% 0.166 334.1)
XYZxyz(11.9116, 6.2822, 16.2048)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1871 #187E25
analogous
#58187E #7E1871 #7E183E
triadic
#7E1871 #717E18 #18717E
tetradic
#7E1871 #7E5818 #187E25 #183E7E
square
#7E1871 #7E5818 #187E25 #183E7E
split-complementary
#7E1871 #3E7E18 #187E58
monochromatic
#1A0517 #4B0E43 #7E1871 #B1229F #D937C4

Accessibility & contrast

On white

9.31
#7E1871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E1871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1871
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1871#FFFFFF#000000##FFFFFF
##7E18711.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#153E73
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#842344
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1871;
/* rgb */ color: rgb(126, 24, 113);
/* oklch */ color: oklch(42.0% 0.166 334.1);
Tailwind
colors: {
  custom: {
    50: '#a7629a',
    500: '#7e1871',
    950: '#000000',
  },
}
SCSS
$custom: #7e1871;
$custom-light: #a7629a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1871",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 307.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41964,
    "c": 0.16622,
    "h": 334.1
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#7E1871
secondary
#3FB24E
accent
#EB533D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1871

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

Preview Lab → · Contrast checker → · Palette generator →

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