#7E1872#7E1872

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

Color values

HEX#7E1872
RGBrgb(126, 24, 114)
HSLhsl(307, 68%, 29%)
HSVhsv(307, 81%, 49%)
CMYKcmyk(0%, 81%, 9.5%, 50.6%)
CIE-LABlab(30.17, 51.61, -27.03)
CIE-LCHlch(30.17, 58.26, 332.35°)
OKLaboklab(42.02% 0.1496 -0.0742)
OKLCHoklch(42.02% 0.167 333.6)
XYZxyz(11.9682, 6.3048, 16.5030)
Luminance0.0630 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1872 #187E24
analogous
#57187E #7E1872 #7E183F
triadic
#7E1872 #727E18 #18727E
tetradic
#7E1872 #7E5718 #187E24 #183F7E
square
#7E1872 #7E5718 #187E24 #183F7E
split-complementary
#7E1872 #3F7E18 #187E57
monochromatic
#1A0517 #4B0E43 #7E1872 #B122A1 #D937C6

Accessibility & contrast

On white

9.29
#7E1872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1872
9.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1872#FFFFFF#000000##FFFFFF
##7E18721.009.292.269.29
#FFFFFF9.291.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143E74
Deuteranopia (green-blind)
#3D4C70
Tritanopia (blue-blind)
#842344
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e1872;
/* rgb */ color: rgb(126, 24, 114);
/* oklch */ color: oklch(42.0% 0.167 333.6);
Tailwind
colors: {
  custom: {
    50: '#a7629b',
    500: '#7e1872',
    950: '#000000',
  },
}
SCSS
$custom: #7e1872;
$custom-light: #a7629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1872",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 307.059,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42021,
    "c": 0.16695,
    "h": 333.6
  },
  "luminance": 0.06304
}

Semantic roles & 50–950 ramp

primary
#7E1872
secondary
#3FB24D
accent
#EB513D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1872

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

Preview Lab → · Contrast checker → · Palette generator →

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