#7E1876#7E1876

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

Color values

HEX#7E1876
RGBrgb(126, 24, 118)
HSLhsl(305, 68%, 29%)
HSVhsv(305, 81%, 49%)
CMYKcmyk(0%, 81%, 6.3%, 50.6%)
CIE-LABlab(30.39, 52.25, -29.22)
CIE-LCHlch(30.39, 59.86, 330.78°)
OKLaboklab(42.26% 0.1497 -0.0805)
OKLCHoklch(42.26% 0.17 331.7)
XYZxyz(12.2009, 6.3979, 17.7284)
Luminance0.0640 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1876 #187E20
analogous
#53187E #7E1876 #7E1843
triadic
#7E1876 #767E18 #18767E
tetradic
#7E1876 #7E5318 #187E20 #18437E
square
#7E1876 #7E5318 #187E20 #18437E
split-complementary
#7E1876 #437E18 #187E53
monochromatic
#1A0518 #4B0E46 #7E1876 #B122A6 #D937CC

Accessibility & contrast

On white

9.21
#7E1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1876
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1876#FFFFFF#000000##FFFFFF
##7E18761.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3F78
Deuteranopia (green-blind)
#3B4C74
Tritanopia (blue-blind)
#842547
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1876;
/* rgb */ color: rgb(126, 24, 118);
/* oklch */ color: oklch(42.3% 0.170 331.7);
Tailwind
colors: {
  custom: {
    50: '#a7639e',
    500: '#7e1876',
    950: '#000000',
  },
}
SCSS
$custom: #7e1876;
$custom-light: #a7639e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1876",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 304.706,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42256,
    "c": 0.16995,
    "h": 331.7
  },
  "luminance": 0.06397
}

Semantic roles & 50–950 ramp

primary
#7E1876
secondary
#3FB248
accent
#EB4B3D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1876

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

Preview Lab → · Contrast checker → · Palette generator →

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