#7E198E#7E198E

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

Color values

HEX#7E198E
RGBrgb(126, 25, 142)
HSLhsl(292, 70%, 33%)
HSVhsv(292, 82%, 56%)
CMYKcmyk(11.3%, 82.4%, 0%, 44.3%)
CIE-LABlab(32.00, 56.12, -41.68)
CIE-LCHlch(32.00, 69.90, 323.40°)
OKLaboklab(43.88% 0.1474 -0.1168)
OKLCHoklch(43.88% 0.188 321.6)
XYZxyz(13.8338, 7.0847, 26.2248)
Luminance0.0708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E198E #298E19
analogous
#44198E #7E198E #8E1963
triadic
#7E198E #8E7E19 #198E7E
tetradic
#7E198E #8E4419 #298E19 #19638E
square
#7E198E #8E4419 #298E19 #19638E
split-complementary
#7E198E #638E19 #198E44
monochromatic
#220726 #50105A #7E198E #AC22C2 #C943DE

Accessibility & contrast

On white

8.69
#7E198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E198E
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E198E#FFFFFF#000000##FFFFFF
##7E198E1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#2A4F8B
Tritanopia (blue-blind)
#7F3355
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e198e;
/* rgb */ color: rgb(126, 25, 142);
/* oklch */ color: oklch(43.9% 0.188 321.6);
Tailwind
colors: {
  custom: {
    50: '#a764b0',
    500: '#7e198e',
    950: '#000000',
  },
}
SCSS
$custom: #7e198e;
$custom-light: #a764b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e198e",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 291.795,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43877,
    "c": 0.18808,
    "h": 321.6
  },
  "luminance": 0.07084
}

Semantic roles & 50–950 ramp

primary
#7E198E
secondary
#55BF44
accent
#ED3B53
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E198E

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

Preview Lab → · Contrast checker → · Palette generator →

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