#7E197E#7E197E

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

Color values

HEX#7E197E
RGBrgb(126, 25, 126)
HSLhsl(300, 67%, 30%)
HSVhsv(300, 80%, 49%)
CMYKcmyk(0%, 80.2%, 0%, 50.6%)
CIE-LABlab(30.97, 53.29, -33.36)
CIE-LCHlch(30.97, 62.87, 327.95°)
OKLaboklab(42.82% 0.1488 -0.0925)
OKLCHoklch(42.82% 0.175 328.1)
XYZxyz(12.7176, 6.6382, 20.3461)
Luminance0.0664 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E197E #197E19
analogous
#4C197E #7E197E #7E194C
triadic
#7E197E #7E7E19 #197E7E
tetradic
#7E197E #7E4C19 #197E19 #194C7E
square
#7E197E #7E4C19 #197E19 #194C7E
split-complementary
#7E197E #4C7E19 #197E4C
monochromatic
#1A051A #4B0F4B #7E197E #B123B1 #D83AD8

Accessibility & contrast

On white

9.02
#7E197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E197E
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E197E#FFFFFF#000000##FFFFFF
##7E197E1.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004181
Deuteranopia (green-blind)
#364D7C
Tritanopia (blue-blind)
#822A4B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e197e;
/* rgb */ color: rgb(126, 25, 126);
/* oklch */ color: oklch(42.8% 0.175 328.1);
Tailwind
colors: {
  custom: {
    50: '#a763a4',
    500: '#7e197e',
    950: '#000000',
  },
}
SCSS
$custom: #7e197e;
$custom-light: #a763a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e197e",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 300,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42818,
    "c": 0.17519,
    "h": 328.1
  },
  "luminance": 0.06637
}

Semantic roles & 50–950 ramp

primary
#7E197E
secondary
#41B241
accent
#EA3E3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7E197E

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

Preview Lab → · Contrast checker → · Palette generator →

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