#7E2796#7E2796

#7E2796 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.181 H 317.9°. Best body text is #FFFFFF at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#7E2796
RGBrgb(126, 39, 150)
HSLhsl(287, 59%, 37%)
HSVhsv(287, 74%, 59%)
CMYKcmyk(16%, 74%, 0%, 41.2%)
CIE-LABlab(34.17, 52.96, -43.11)
CIE-LCHlch(34.17, 68.28, 320.86°)
OKLaboklab(45.59% 0.1341 -0.1211)
OKLCHoklch(45.59% 0.181 317.9)
XYZxyz(14.8339, 8.0893, 29.6283)
Luminance0.0809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2796 #3F9627
analogous
#472796 #7E2796 #962777
triadic
#7E2796 #967E27 #27967E
tetradic
#7E2796 #964727 #3F9627 #277796
square
#7E2796 #964727 #3F9627 #277796
split-complementary
#7E2796 #779627 #279647
monochromatic
#2C0E35 #551A65 #7E2796 #A734C7 #BD61D6

Accessibility & contrast

On white

8.02
#7E2796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2796
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2796#FFFFFF#000000##FFFFFF
##7E27961.008.022.628.02
#FFFFFF8.021.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#2B5393
Tritanopia (blue-blind)
#7D3E5C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2796;
/* rgb */ color: rgb(126, 39, 150);
/* oklch */ color: oklch(45.6% 0.181 317.9);
Tailwind
colors: {
  custom: {
    50: '#a76ab5',
    500: '#7e2796',
    950: '#000000',
  },
}
SCSS
$custom: #7e2796;
$custom-light: #a76ab5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2796",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 150
  },
  "hsl": {
    "h": 287.027,
    "s": 58.73,
    "l": 37.059
  },
  "oklch": {
    "l": 0.45585,
    "c": 0.18069,
    "h": 317.9
  },
  "luminance": 0.08089
}

Semantic roles & 50–950 ramp

primary
#7E2796
secondary
#72BC5D
accent
#E24668
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2796

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

Preview Lab → · Contrast checker → · Palette generator →

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