#7E1877#7E1877

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

Color values

HEX#7E1877
RGBrgb(126, 24, 119)
HSLhsl(304, 68%, 29%)
HSVhsv(304, 81%, 49%)
CMYKcmyk(0%, 81%, 5.6%, 50.6%)
CIE-LABlab(30.45, 52.41, -29.76)
CIE-LCHlch(30.45, 60.27, 330.41°)
OKLaboklab(42.32% 0.1497 -0.0821)
OKLCHoklch(42.32% 0.171 331.3)
XYZxyz(12.2606, 6.4218, 18.0430)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1877 #187E1F
analogous
#52187E #7E1877 #7E1844
triadic
#7E1877 #777E18 #18777E
tetradic
#7E1877 #7E5218 #187E1F #18447E
square
#7E1877 #7E5218 #187E1F #18447E
split-complementary
#7E1877 #447E18 #187E52
monochromatic
#1A0518 #4B0E46 #7E1877 #B122A8 #D937CE

Accessibility & contrast

On white

9.19
#7E1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E1877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1877
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1877#FFFFFF#000000##FFFFFF
##7E18771.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3F79
Deuteranopia (green-blind)
#3A4D75
Tritanopia (blue-blind)
#832647
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1877;
/* rgb */ color: rgb(126, 24, 119);
/* oklch */ color: oklch(42.3% 0.171 331.3);
Tailwind
colors: {
  custom: {
    50: '#a7639e',
    500: '#7e1877',
    950: '#000000',
  },
}
SCSS
$custom: #7e1877;
$custom-light: #a7639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1877",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 304.118,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42316,
    "c": 0.17071,
    "h": 331.3
  },
  "luminance": 0.06421
}

Semantic roles & 50–950 ramp

primary
#7E1877
secondary
#3FB247
accent
#EB493D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1877

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

Preview Lab → · Contrast checker → · Palette generator →

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