#7E2197#7E2197

#7E2197 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.1% C 0.188 H 317.9°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#7E2197
RGBrgb(126, 33, 151)
HSLhsl(287, 64%, 36%)
HSVhsv(287, 78%, 59%)
CMYKcmyk(16.6%, 78.1%, 0%, 40.8%)
CIE-LABlab(33.47, 55.34, -44.83)
CIE-LCHlch(33.47, 71.22, 320.99°)
OKLaboklab(45.11% 0.1396 -0.1261)
OKLCHoklch(45.11% 0.188 317.9)
XYZxyz(14.7332, 7.7584, 29.9936)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2197 #3A9721
analogous
#432197 #7E2197 #972175
triadic
#7E2197 #977E21 #21977E
tetradic
#7E2197 #974321 #3A9721 #217597
square
#7E2197 #974321 #3A9721 #217597
split-complementary
#7E2197 #759721 #219743
monochromatic
#2A0B33 #541665 #7E2197 #A82CC9 #BF58DA

Accessibility & contrast

On white

8.23
#7E2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2197
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2197#FFFFFF#000000##FFFFFF
##7E21971.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#265294
Tritanopia (blue-blind)
#7D3B5B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2197;
/* rgb */ color: rgb(126, 33, 151);
/* oklch */ color: oklch(45.1% 0.188 317.9);
Tailwind
colors: {
  custom: {
    50: '#a768b6',
    500: '#7e2197',
    950: '#000000',
  },
}
SCSS
$custom: #7e2197;
$custom-light: #a768b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2197",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 287.288,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.45114,
    "c": 0.18816,
    "h": 317.9
  },
  "luminance": 0.07758
}

Semantic roles & 50–950 ramp

primary
#7E2197
secondary
#6CBE55
accent
#E74164
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2197

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

Preview Lab → · Contrast checker → · Palette generator →

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