#7E188D#7E188D

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

Color values

HEX#7E188D
RGBrgb(126, 24, 141)
HSLhsl(292, 71%, 32%)
HSVhsv(292, 83%, 55%)
CMYKcmyk(10.6%, 83%, 0%, 44.7%)
CIE-LABlab(31.84, 56.21, -41.32)
CIE-LCHlch(31.84, 69.77, 323.68°)
OKLaboklab(43.74% 0.1483 -0.1158)
OKLCHoklch(43.74% 0.188 322)
XYZxyz(13.7380, 7.0128, 25.8241)
Luminance0.0701 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E188D #278D18
analogous
#44188D #7E188D #8D1861
triadic
#7E188D #8D7E18 #188D7E
tetradic
#7E188D #8D4418 #278D18 #18618D
square
#7E188D #8D4418 #278D18 #18618D
split-complementary
#7E188D #618D18 #188D44
monochromatic
#210624 #4F0F59 #7E188D #AD21C1 #CA41DF

Accessibility & contrast

On white

8.74
#7E188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E188D
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E188D#FFFFFF#000000##FFFFFF
##7E188D1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#2B4F8A
Tritanopia (blue-blind)
#7F3254
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e188d;
/* rgb */ color: rgb(126, 24, 141);
/* oklch */ color: oklch(43.7% 0.188 322.0);
Tailwind
colors: {
  custom: {
    50: '#a764af',
    500: '#7e188d',
    950: '#000000',
  },
}
SCSS
$custom: #7e188d;
$custom-light: #a764af;
$custom-dark: #000000;
JSON
{
  "hex": "#7e188d",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 292.308,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.4374,
    "c": 0.18812,
    "h": 322
  },
  "luminance": 0.07012
}

Semantic roles & 50–950 ramp

primary
#7E188D
secondary
#52BF42
accent
#EE3A51
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E188D

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

Preview Lab → · Contrast checker → · Palette generator →

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