#7E2A97#7E2A97

#7E2A97 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.178 H 317.3°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#7E2A97
RGBrgb(126, 42, 151)
HSLhsl(286, 56%, 38%)
HSVhsv(286, 72%, 59%)
CMYKcmyk(16.6%, 72.2%, 0%, 40.8%)
CIE-LABlab(34.65, 51.97, -42.93)
CIE-LCHlch(34.65, 67.41, 320.44°)
OKLaboklab(45.95% 0.1309 -0.1206)
OKLCHoklch(45.95% 0.178 317.3)
XYZxyz(15.0173, 8.3266, 30.0883)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A97 #43972A
analogous
#482A97 #7E2A97 #972A79
triadic
#7E2A97 #977E2A #2A977E
tetradic
#7E2A97 #97482A #43972A #2A7997
square
#7E2A97 #97482A #43972A #2A7997
split-complementary
#7E2A97 #79972A #2A9748
monochromatic
#2E0F37 #561D67 #7E2A97 #A637C7 #BB67D5

Accessibility & contrast

On white

7.88
#7E2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E2A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A97
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A97#FFFFFF#000000##FFFFFF
##7E2A971.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2a97;
/* rgb */ color: rgb(126, 42, 151);
/* oklch */ color: oklch(46.0% 0.178 317.3);
Tailwind
colors: {
  custom: {
    50: '#a76cb6',
    500: '#7e2a97',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a97;
$custom-light: #a76cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a97",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 286.239,
    "s": 56.477,
    "l": 37.843
  },
  "oklch": {
    "l": 0.45952,
    "c": 0.17801,
    "h": 317.3
  },
  "luminance": 0.08326
}

Semantic roles & 50–950 ramp

primary
#7E2A97
secondary
#76BB62
accent
#E0486B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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