#7E188F#7E188F

#7E188F is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.190 H 321.3°. Best body text is #FFFFFF at 8.70:1 contrast (WCAG AA passes).

Color values

HEX#7E188F
RGBrgb(126, 24, 143)
HSLhsl(291, 71%, 33%)
HSVhsv(291, 83%, 56%)
CMYKcmyk(11.9%, 83.2%, 0%, 43.9%)
CIE-LABlab(31.97, 56.58, -42.34)
CIE-LCHlch(31.97, 70.67, 323.19°)
OKLaboklab(43.88% 0.148 -0.1188)
OKLCHoklch(43.88% 0.19 321.3)
XYZxyz(13.8882, 7.0728, 26.6149)
Luminance0.0707 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E188F #298F18
analogous
#43188F #7E188F #8F1864
triadic
#7E188F #8F7E18 #188F7E
tetradic
#7E188F #8F4318 #298F18 #18648F
square
#7E188F #8F4318 #298F18 #18648F
split-complementary
#7E188F #648F18 #188F43
monochromatic
#220626 #500F5B #7E188F #AC21C3 #C942DF

Accessibility & contrast

On white

8.70
#7E188F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E188F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E188F
8.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E188F#FFFFFF#000000##FFFFFF
##7E188F1.008.702.418.70
#FFFFFF8.701.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#294F8C
Tritanopia (blue-blind)
#7F3355
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e188f;
/* rgb */ color: rgb(126, 24, 143);
/* oklch */ color: oklch(43.9% 0.190 321.3);
Tailwind
colors: {
  custom: {
    50: '#a764b0',
    500: '#7e188f',
    950: '#000000',
  },
}
SCSS
$custom: #7e188f;
$custom-light: #a764b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e188f",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 143
  },
  "hsl": {
    "h": 291.429,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.4388,
    "c": 0.18975,
    "h": 321.3
  },
  "luminance": 0.07072
}

Semantic roles & 50–950 ramp

primary
#7E188F
secondary
#55C043
accent
#EE3A54
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E188F

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

Preview Lab → · Contrast checker → · Palette generator →

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