#7E178E#7E178E

#7E178E is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.7% C 0.190 H 321.7°. Best body text is #FFFFFF at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#7E178E
RGBrgb(126, 23, 142)
HSLhsl(292, 72%, 32%)
HSVhsv(292, 84%, 56%)
CMYKcmyk(11.3%, 83.8%, 0%, 44.3%)
CIE-LABlab(31.81, 56.66, -41.98)
CIE-LCHlch(31.81, 70.52, 323.47°)
OKLaboklab(43.75% 0.1489 -0.1177)
OKLCHoklch(43.75% 0.19 321.7)
XYZxyz(13.7925, 7.0022, 26.2110)
Luminance0.0700 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E178E #278E17
analogous
#43178E #7E178E #8E1762
triadic
#7E178E #8E7E17 #178E7E
tetradic
#7E178E #8E4317 #278E17 #17628E
square
#7E178E #8E4317 #278E17 #17628E
split-complementary
#7E178E #628E17 #178E43
monochromatic
#210625 #4F0E59 #7E178E #AD20C3 #CA3FE0

Accessibility & contrast

On white

8.75
#7E178E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7E178E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E178E
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E178E#FFFFFF#000000##FFFFFF
##7E178E1.008.752.408.75
#FFFFFF8.751.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#294E8B
Tritanopia (blue-blind)
#7F3254
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e178e;
/* rgb */ color: rgb(126, 23, 142);
/* oklch */ color: oklch(43.7% 0.190 321.7);
Tailwind
colors: {
  custom: {
    50: '#a763b0',
    500: '#7e178e',
    950: '#000000',
  },
}
SCSS
$custom: #7e178e;
$custom-light: #a763b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e178e",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 142
  },
  "hsl": {
    "h": 291.933,
    "s": 72.121,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43745,
    "c": 0.18976,
    "h": 321.7
  },
  "luminance": 0.07001
}

Semantic roles & 50–950 ramp

primary
#7E178E
secondary
#52C040
accent
#EF3951
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E178E

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

Preview Lab → · Contrast checker → · Palette generator →

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