#7E2199#7E2199

#7E2199 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.3% C 0.190 H 317.2°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7E2199
RGBrgb(126, 33, 153)
HSLhsl(287, 65%, 36%)
HSVhsv(287, 78%, 60%)
CMYKcmyk(17.6%, 78.4%, 0%, 40%)
CIE-LABlab(33.61, 55.73, -45.83)
CIE-LCHlch(33.61, 72.15, 320.57°)
OKLaboklab(45.26% 0.1393 -0.129)
OKLCHoklch(45.26% 0.19 317.2)
XYZxyz(14.8970, 7.8239, 30.8563)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2199 #3C9921
analogous
#422199 #7E2199 #992178
triadic
#7E2199 #997E21 #21997E
tetradic
#7E2199 #994221 #3C9921 #217899
square
#7E2199 #994221 #3C9921 #217899
split-complementary
#7E2199 #789921 #219942
monochromatic
#2B0B34 #551667 #7E2199 #A72CCB #BE59DB

Accessibility & contrast

On white

8.19
#7E2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2199
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2199#FFFFFF#000000##FFFFFF
##7E21991.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#235296
Tritanopia (blue-blind)
#7D3C5D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2199;
/* rgb */ color: rgb(126, 33, 153);
/* oklch */ color: oklch(45.3% 0.190 317.2);
Tailwind
colors: {
  custom: {
    50: '#a768b8',
    500: '#7e2199',
    950: '#000000',
  },
}
SCSS
$custom: #7e2199;
$custom-light: #a768b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2199",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 286.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.45256,
    "c": 0.18991,
    "h": 317.2
  },
  "luminance": 0.07823
}

Semantic roles & 50–950 ramp

primary
#7E2199
secondary
#6EBF56
accent
#E84066
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2199

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

Preview Lab → · Contrast checker → · Palette generator →

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