#7E2097#7E2097

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

Color values

HEX#7E2097
RGBrgb(126, 32, 151)
HSLhsl(287, 65%, 36%)
HSVhsv(287, 79%, 59%)
CMYKcmyk(16.6%, 78.8%, 0%, 40.8%)
CIE-LABlab(33.36, 55.67, -45.02)
CIE-LCHlch(33.36, 71.60, 321.04°)
OKLaboklab(45.03% 0.1405 -0.1267)
OKLCHoklch(45.03% 0.189 318)
XYZxyz(14.7058, 7.7037, 29.9845)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2097 #399720
analogous
#422097 #7E2097 #972074
triadic
#7E2097 #977E20 #20977E
tetradic
#7E2097 #974220 #399720 #207497
square
#7E2097 #974220 #399720 #207497
split-complementary
#7E2097 #749720 #209742
monochromatic
#2A0B32 #541564 #7E2097 #A82BC9 #BF56DB

Accessibility & contrast

On white

8.27
#7E2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2097 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2097
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2097#FFFFFF#000000##FFFFFF
##7E20971.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#255194
Tritanopia (blue-blind)
#7D3A5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2097;
/* rgb */ color: rgb(126, 32, 151);
/* oklch */ color: oklch(45.0% 0.189 318.0);
Tailwind
colors: {
  custom: {
    50: '#a767b6',
    500: '#7e2097',
    950: '#000000',
  },
}
SCSS
$custom: #7e2097;
$custom-light: #a767b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2097",
  "rgb": {
    "r": 126,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 287.395,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.45032,
    "c": 0.18916,
    "h": 318
  },
  "luminance": 0.07703
}

Semantic roles & 50–950 ramp

primary
#7E2097
secondary
#6ABF54
accent
#E84063
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2097

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

Preview Lab → · Contrast checker → · Palette generator →

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