#7E2896#7E2896

#7E2896 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.179 H 317.8°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#7E2896
RGBrgb(126, 40, 150)
HSLhsl(287, 58%, 37%)
HSVhsv(287, 73%, 59%)
CMYKcmyk(16%, 73.3%, 0%, 41.2%)
CIE-LABlab(34.31, 52.57, -42.88)
CIE-LCHlch(34.31, 67.84, 320.79°)
OKLaboklab(45.68% 0.1331 -0.1205)
OKLCHoklch(45.68% 0.18 317.8)
XYZxyz(14.8672, 8.1559, 29.6394)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2896 #409628
analogous
#472896 #7E2896 #962877
triadic
#7E2896 #967E28 #28967E
tetradic
#7E2896 #964728 #409628 #287796
square
#7E2896 #964728 #409628 #287796
split-complementary
#7E2896 #779628 #289647
monochromatic
#2D0E35 #551B66 #7E2896 #A735C6 #BC63D5

Accessibility & contrast

On white

7.98
#7E2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2896
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2896#FFFFFF#000000##FFFFFF
##7E28961.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#2C5393
Tritanopia (blue-blind)
#7D3E5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2896;
/* rgb */ color: rgb(126, 40, 150);
/* oklch */ color: oklch(45.7% 0.179 317.8);
Tailwind
colors: {
  custom: {
    50: '#a76bb5',
    500: '#7e2896',
    950: '#000000',
  },
}
SCSS
$custom: #7e2896;
$custom-light: #a76bb5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2896",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 286.909,
    "s": 57.895,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45682,
    "c": 0.1795,
    "h": 317.8
  },
  "luminance": 0.08155
}

Semantic roles & 50–950 ramp

primary
#7E2896
secondary
#73BB5F
accent
#E14768
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2896

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

Preview Lab → · Contrast checker → · Palette generator →

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