#7E198F#7E198F

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

Color values

HEX#7E198F
RGBrgb(126, 25, 143)
HSLhsl(291, 70%, 33%)
HSVhsv(291, 83%, 56%)
CMYKcmyk(11.9%, 82.5%, 0%, 43.9%)
CIE-LABlab(32.07, 56.30, -42.19)
CIE-LCHlch(32.07, 70.35, 323.16°)
OKLaboklab(43.95% 0.1473 -0.1183)
OKLCHoklch(43.95% 0.189 321.2)
XYZxyz(13.9092, 7.1148, 26.6219)
Luminance0.0711 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E198F #2A8F19
analogous
#43198F #7E198F #8F1965
triadic
#7E198F #8F7E19 #198F7E
tetradic
#7E198F #8F4319 #2A8F19 #19658F
square
#7E198F #8F4319 #2A8F19 #19658F
split-complementary
#7E198F #658F19 #198F43
monochromatic
#220727 #50105B #7E198F #AC22C3 #C844DE

Accessibility & contrast

On white

8.67
#7E198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E198F
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E198F#FFFFFF#000000##FFFFFF
##7E198F1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e198f;
/* rgb */ color: rgb(126, 25, 143);
/* oklch */ color: oklch(43.9% 0.189 321.2);
Tailwind
colors: {
  custom: {
    50: '#a764b0',
    500: '#7e198f',
    950: '#000000',
  },
}
SCSS
$custom: #7e198f;
$custom-light: #a764b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e198f",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 291.356,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43946,
    "c": 0.18891,
    "h": 321.2
  },
  "luminance": 0.07114
}

Semantic roles & 50–950 ramp

primary
#7E198F
secondary
#56BF44
accent
#ED3B54
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E198F

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

Preview Lab → · Contrast checker → · Palette generator →

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