#7E196F#7E196F

#7E196F is a dark, vivid purple. Relative luminance 0.063; OKLCH L 41.9% C 0.164 H 335.1°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#7E196F
RGBrgb(126, 25, 111)
HSLhsl(309, 67%, 30%)
HSVhsv(309, 80%, 49%)
CMYKcmyk(0%, 80.2%, 11.9%, 50.6%)
CIE-LABlab(30.11, 50.84, -25.21)
CIE-LCHlch(30.11, 56.75, 333.62°)
OKLaboklab(41.92% 0.1485 -0.069)
OKLCHoklch(41.92% 0.164 335.1)
XYZxyz(11.8212, 6.2797, 15.6254)
Luminance0.0628 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E196F #197E28
analogous
#5B197E #7E196F #7E193D
triadic
#7E196F #6F7E19 #196F7E
tetradic
#7E196F #7E5B19 #197E28 #193D7E
square
#7E196F #7E5B19 #197E28 #193D7E
split-complementary
#7E196F #3D7E19 #197E5B
monochromatic
#1A0516 #4B0F42 #7E196F #B1239C #D83AC0

Accessibility & contrast

On white

9.31
#7E196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E196F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E196F#FFFFFF#000000##FFFFFF
##7E196F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193D71
Deuteranopia (green-blind)
#3E4C6D
Tritanopia (blue-blind)
#852243
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e196f;
/* rgb */ color: rgb(126, 25, 111);
/* oklch */ color: oklch(41.9% 0.164 335.1);
Tailwind
colors: {
  custom: {
    50: '#a76398',
    500: '#7e196f',
    950: '#000000',
  },
}
SCSS
$custom: #7e196f;
$custom-light: #a76398;
$custom-dark: #000000;
JSON
{
  "hex": "#7e196f",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 308.911,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.41924,
    "c": 0.16376,
    "h": 335.1
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#7E196F
secondary
#41B251
accent
#EA583E
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E196F

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

Preview Lab → · Contrast checker → · Palette generator →

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