#7E197A#7E197A

#7E197A is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.172 H 329.9°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7E197A
RGBrgb(126, 25, 122)
HSLhsl(302, 67%, 30%)
HSVhsv(302, 80%, 49%)
CMYKcmyk(0%, 80.2%, 3.2%, 50.6%)
CIE-LABlab(30.73, 52.61, -31.22)
CIE-LCHlch(30.73, 61.18, 329.31°)
OKLaboklab(42.57% 0.1488 -0.0863)
OKLCHoklch(42.57% 0.172 329.9)
XYZxyz(12.4646, 6.5370, 19.0139)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E197A #197E1D
analogous
#4F197E #7E197A #7E1948
triadic
#7E197A #7A7E19 #197A7E
tetradic
#7E197A #7E4F19 #197E1D #19487E
square
#7E197A #7E4F19 #197E1D #19487E
split-complementary
#7E197A #487E19 #197E4F
monochromatic
#1A0519 #4B0F49 #7E197A #B123AB #D83AD2

Accessibility & contrast

On white

9.10
#7E197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E197A
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E197A#FFFFFF#000000##FFFFFF
##7E197A1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07407D
Deuteranopia (green-blind)
#394D78
Tritanopia (blue-blind)
#832849
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e197a;
/* rgb */ color: rgb(126, 25, 122);
/* oklch */ color: oklch(42.6% 0.172 329.9);
Tailwind
colors: {
  custom: {
    50: '#a763a1',
    500: '#7e197a',
    950: '#000000',
  },
}
SCSS
$custom: #7e197a;
$custom-light: #a763a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e197a",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 302.376,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42569,
    "c": 0.17206,
    "h": 329.9
  },
  "luminance": 0.06536
}

Semantic roles & 50–950 ramp

primary
#7E197A
secondary
#41B245
accent
#EA453E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E197A

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

Preview Lab → · Contrast checker → · Palette generator →

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