#7E197F#7E197F

#7E197F is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.176 H 327.7°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7E197F
RGBrgb(126, 25, 127)
HSLhsl(299, 67%, 30%)
HSVhsv(299, 80%, 50%)
CMYKcmyk(0.8%, 80.3%, 0%, 50.2%)
CIE-LABlab(31.03, 53.46, -33.89)
CIE-LCHlch(31.03, 63.29, 327.62°)
OKLaboklab(42.88% 0.1487 -0.0941)
OKLCHoklch(42.88% 0.176 327.7)
XYZxyz(12.7824, 6.6641, 20.6876)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E197F #1A7F19
analogous
#4B197F #7E197F #7F194D
triadic
#7E197F #7F7E19 #197F7E
tetradic
#7E197F #7F4B19 #1A7F19 #194D7F
square
#7E197F #7F4B19 #1A7F19 #194D7F
split-complementary
#7E197F #4D7F19 #197F4B
monochromatic
#19051A #4B0F4C #7E197F #B123B2 #D73AD8

Accessibility & contrast

On white

9.00
#7E197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E197F
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E197F#FFFFFF#000000##FFFFFF
##7E197F1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#364D7D
Tritanopia (blue-blind)
#822B4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e197f;
/* rgb */ color: rgb(126, 25, 127);
/* oklch */ color: oklch(42.9% 0.176 327.7);
Tailwind
colors: {
  custom: {
    50: '#a763a4',
    500: '#7e197f',
    950: '#000000',
  },
}
SCSS
$custom: #7e197f;
$custom-light: #a763a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e197f",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 299.412,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42881,
    "c": 0.17598,
    "h": 327.7
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#7E197F
secondary
#42B341
accent
#EA3E3F
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E197F

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

Preview Lab → · Contrast checker → · Palette generator →

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