#7E2E88#7E2E88

#7E2E88 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.4% C 0.159 H 323.1°. Best body text is #FFFFFF at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#7E2E88
RGBrgb(126, 46, 136)
HSLhsl(293, 49%, 36%)
HSVhsv(293, 66%, 53%)
CMYKcmyk(7.4%, 66.2%, 0%, 46.7%)
CIE-LABlab(34.33, 47.27, -34.25)
CIE-LCHlch(34.33, 58.37, 324.08°)
OKLaboklab(45.42% 0.1269 -0.0953)
OKLCHoklch(45.42% 0.159 323.1)
XYZxyz(14.0247, 8.1680, 24.1256)
Luminance0.0817 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E88 #38882E
analogous
#512E88 #7E2E88 #882E65
triadic
#7E2E88 #887E2E #2E887E
tetradic
#7E2E88 #88512E #38882E #2E6588
square
#7E2E88 #88512E #38882E #2E6588
split-complementary
#7E2E88 #65882E #2E8851
monochromatic
#290F2D #541F5A #7E2E88 #A83DB6 #C065CB

Accessibility & contrast

On white

7.97
#7E2E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2E88
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E88#FFFFFF#000000##FFFFFF
##7E2E881.007.972.637.97
#FFFFFF7.971.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4B8B
Deuteranopia (green-blind)
#3B5486
Tritanopia (blue-blind)
#803C57
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2e88;
/* rgb */ color: rgb(126, 46, 136);
/* oklch */ color: oklch(45.4% 0.159 323.1);
Tailwind
colors: {
  custom: {
    50: '#a66dab',
    500: '#7e2e88',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e88;
$custom-light: #a66dab;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e88",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 293.333,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.4542,
    "c": 0.15866,
    "h": 323.1
  },
  "luminance": 0.08167
}

Semantic roles & 50–950 ramp

primary
#7E2E88
secondary
#69B260
accent
#D94F5E
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2E88

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

Preview Lab → · Contrast checker → · Palette generator →

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