#7E197C#7E197C

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

Color values

HEX#7E197C
RGBrgb(126, 25, 124)
HSLhsl(301, 67%, 30%)
HSVhsv(301, 80%, 49%)
CMYKcmyk(0%, 80.2%, 1.6%, 50.6%)
CIE-LABlab(30.85, 52.95, -32.29)
CIE-LCHlch(30.85, 62.02, 328.62°)
OKLaboklab(42.69% 0.1488 -0.0894)
OKLCHoklch(42.69% 0.174 329)
XYZxyz(12.5898, 6.5871, 19.6732)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E197C #197E1B
analogous
#4E197E #7E197C #7E194A
triadic
#7E197C #7C7E19 #197C7E
tetradic
#7E197C #7E4E19 #197E1B #194A7E
square
#7E197C #7E4E19 #197E1B #194A7E
split-complementary
#7E197C #4A7E19 #197E4E
monochromatic
#1A0519 #4B0F4A #7E197C #B123AE #D83AD5

Accessibility & contrast

On white

9.06
#7E197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E197C
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E197C#FFFFFF#000000##FFFFFF
##7E197C1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02407F
Deuteranopia (green-blind)
#384D7A
Tritanopia (blue-blind)
#83294A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e197c;
/* rgb */ color: rgb(126, 25, 124);
/* oklch */ color: oklch(42.7% 0.174 329.0);
Tailwind
colors: {
  custom: {
    50: '#a763a2',
    500: '#7e197c',
    950: '#000000',
  },
}
SCSS
$custom: #7e197c;
$custom-light: #a763a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e197c",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 301.188,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42693,
    "c": 0.17362,
    "h": 329
  },
  "luminance": 0.06586
}

Semantic roles & 50–950 ramp

primary
#7E197C
secondary
#41B243
accent
#EA413E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E197C

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

Preview Lab → · Contrast checker → · Palette generator →

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