#7E2196#7E2196

#7E2196 is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.187 H 318.3°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#7E2196
RGBrgb(126, 33, 150)
HSLhsl(288, 64%, 36%)
HSVhsv(288, 78%, 59%)
CMYKcmyk(16%, 78%, 0%, 41.2%)
CIE-LABlab(33.41, 55.14, -44.33)
CIE-LCHlch(33.41, 70.75, 321.20°)
OKLaboklab(45.04% 0.1398 -0.1247)
OKLCHoklch(45.04% 0.187 318.3)
XYZxyz(14.6523, 7.7260, 29.5677)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2196 #399621
analogous
#432196 #7E2196 #962173
triadic
#7E2196 #967E21 #21967E
tetradic
#7E2196 #964321 #399621 #217396
square
#7E2196 #964321 #399621 #217396
split-complementary
#7E2196 #739621 #219643
monochromatic
#2A0B32 #541664 #7E2196 #A82CC8 #BF57DA

Accessibility & contrast

On white

8.25
#7E2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#7E2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2196
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2196#FFFFFF#000000##FFFFFF
##7E21961.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#275193
Tritanopia (blue-blind)
#7D3A5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2196;
/* rgb */ color: rgb(126, 33, 150);
/* oklch */ color: oklch(45.0% 0.187 318.3);
Tailwind
colors: {
  custom: {
    50: '#a768b5',
    500: '#7e2196',
    950: '#000000',
  },
}
SCSS
$custom: #7e2196;
$custom-light: #a768b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2196",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 287.692,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45044,
    "c": 0.18728,
    "h": 318.3
  },
  "luminance": 0.07725
}

Semantic roles & 50–950 ramp

primary
#7E2196
secondary
#6ABE55
accent
#E74163
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2196

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

Preview Lab → · Contrast checker → · Palette generator →

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