#7E2997#7E2997

#7E2997 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.179 H 317.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#7E2997
RGBrgb(126, 41, 151)
HSLhsl(286, 57%, 38%)
HSVhsv(286, 73%, 59%)
CMYKcmyk(16.6%, 72.8%, 0%, 40.8%)
CIE-LABlab(34.51, 52.37, -43.16)
CIE-LCHlch(34.51, 67.87, 320.51°)
OKLaboklab(45.85% 0.132 -0.1213)
OKLCHoklch(45.85% 0.179 317.4)
XYZxyz(14.9822, 8.2565, 30.0766)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2997 #429729
analogous
#472997 #7E2997 #972979
triadic
#7E2997 #977E29 #29977E
tetradic
#7E2997 #974729 #429729 #297997
square
#7E2997 #974729 #429729 #297997
split-complementary
#7E2997 #799729 #299747
monochromatic
#2E0F37 #561C67 #7E2997 #A636C7 #BC65D5

Accessibility & contrast

On white

7.92
#7E2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#7E2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2997
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2997#FFFFFF#000000##FFFFFF
##7E29971.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#2C5494
Tritanopia (blue-blind)
#7D3F5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2997;
/* rgb */ color: rgb(126, 41, 151);
/* oklch */ color: oklch(45.9% 0.179 317.4);
Tailwind
colors: {
  custom: {
    50: '#a76bb6',
    500: '#7e2997',
    950: '#000000',
  },
}
SCSS
$custom: #7e2997;
$custom-light: #a76bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2997",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 286.364,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.4585,
    "c": 0.17923,
    "h": 317.4
  },
  "luminance": 0.08256
}

Semantic roles & 50–950 ramp

primary
#7E2997
secondary
#75BB61
accent
#E1476A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2997

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

Preview Lab → · Contrast checker → · Palette generator →

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