#7E2CA4#7E2CA4

#7E2CA4 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.188 H 312.7°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7E2CA4
RGBrgb(126, 44, 164)
HSLhsl(281, 58%, 41%)
HSVhsv(281, 73%, 64%)
CMYKcmyk(23.2%, 73.2%, 0%, 35.7%)
CIE-LABlab(35.83, 53.86, -48.92)
CIE-LCHlch(35.83, 72.76, 317.75°)
OKLaboklab(47.07% 0.1274 -0.1382)
OKLCHoklch(47.07% 0.188 312.7)
XYZxyz(16.2045, 8.9178, 35.9825)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2CA4 #52A42C
analogous
#422CA4 #7E2CA4 #A42C8E
triadic
#7E2CA4 #A47E2C #2CA47E
tetradic
#7E2CA4 #A4422C #52A42C #2C8EA4
square
#7E2CA4 #A4422C #52A42C #2C8EA4
split-complementary
#7E2CA4 #8EA42C #2CA442
monochromatic
#341243 #591F74 #7E2CA4 #A041CC #B871D9

Accessibility & contrast

On white

7.54
#7E2CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E2CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2CA4
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2CA4#FFFFFF#000000##FFFFFF
##7E2CA41.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1F56A1
Tritanopia (blue-blind)
#7A4665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2ca4;
/* rgb */ color: rgb(126, 44, 164);
/* oklch */ color: oklch(47.1% 0.188 312.7);
Tailwind
colors: {
  custom: {
    50: '#a76dc0',
    500: '#7e2ca4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ca4;
$custom-light: #a76dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ca4",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 281,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47067,
    "c": 0.18795,
    "h": 312.7
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#7E2CA4
secondary
#86C06B
accent
#E14778
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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