#7E2E97#7E2E97

#7E2E97 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.173 H 317.0°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7E2E97
RGBrgb(126, 46, 151)
HSLhsl(286, 53%, 39%)
HSVhsv(286, 70%, 59%)
CMYKcmyk(16.6%, 69.5%, 0%, 40.8%)
CIE-LABlab(35.25, 50.29, -41.98)
CIE-LCHlch(35.25, 65.50, 320.15°)
OKLaboklab(46.38% 0.1265 -0.1178)
OKLCHoklch(46.38% 0.173 317)
XYZxyz(15.1663, 8.6246, 30.1380)
Luminance0.0862 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E97 #47972E
analogous
#492E97 #7E2E97 #972E7B
triadic
#7E2E97 #977E2E #2E977E
tetradic
#7E2E97 #97492E #47972E #2E7B97
square
#7E2E97 #97492E #47972E #2E7B97
split-complementary
#7E2E97 #7B972E #2E9749
monochromatic
#301139 #572068 #7E2E97 #A43EC4 #BA6DD2

Accessibility & contrast

On white

7.71
#7E2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E97
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E97#FFFFFF#000000##FFFFFF
##7E2E971.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#305595
Tritanopia (blue-blind)
#7D425F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2e97;
/* rgb */ color: rgb(126, 46, 151);
/* oklch */ color: oklch(46.4% 0.173 317.0);
Tailwind
colors: {
  custom: {
    50: '#a76eb6',
    500: '#7e2e97',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e97;
$custom-light: #a76eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e97",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 285.714,
    "s": 53.299,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46379,
    "c": 0.17292,
    "h": 317
  },
  "luminance": 0.08624
}

Semantic roles & 50–950 ramp

primary
#7E2E97
secondary
#7BBA67
accent
#DD4B6E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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