#7E197D#7E197D

#7E197D is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.8% C 0.174 H 328.6°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7E197D
RGBrgb(126, 25, 125)
HSLhsl(301, 67%, 30%)
HSVhsv(301, 80%, 49%)
CMYKcmyk(0%, 80.2%, 0.8%, 50.6%)
CIE-LABlab(30.91, 53.12, -32.83)
CIE-LCHlch(30.91, 62.44, 328.28°)
OKLaboklab(42.76% 0.1488 -0.091)
OKLCHoklch(42.76% 0.174 328.6)
XYZxyz(12.6534, 6.6125, 20.0080)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E197D #197E1A
analogous
#4D197E #7E197D #7E194B
triadic
#7E197D #7D7E19 #197D7E
tetradic
#7E197D #7E4D19 #197E1A #194B7E
square
#7E197D #7E4D19 #197E1A #194B7E
split-complementary
#7E197D #4B7E19 #197E4D
monochromatic
#1A0519 #4B0F4A #7E197D #B123B0 #D83AD6

Accessibility & contrast

On white

9.04
#7E197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E197D
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E197D#FFFFFF#000000##FFFFFF
##7E197D1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#822A4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e197d;
/* rgb */ color: rgb(126, 25, 125);
/* oklch */ color: oklch(42.8% 0.174 328.6);
Tailwind
colors: {
  custom: {
    50: '#a763a3',
    500: '#7e197d',
    950: '#000000',
  },
}
SCSS
$custom: #7e197d;
$custom-light: #a763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e197d",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 300.594,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42755,
    "c": 0.1744,
    "h": 328.6
  },
  "luminance": 0.06612
}

Semantic roles & 50–950 ramp

primary
#7E197D
secondary
#41B242
accent
#EA403E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E197D

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

Preview Lab → · Contrast checker → · Palette generator →

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