#7E2AA8#7E2AA8

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

Color values

HEX#7E2AA8
RGBrgb(126, 42, 168)
HSLhsl(280, 60%, 41%)
HSVhsv(280, 75%, 66%)
CMYKcmyk(25%, 75%, 0%, 34.1%)
CIE-LABlab(35.83, 55.52, -51.32)
CIE-LCHlch(35.83, 75.60, 317.25°)
OKLaboklab(47.16% 0.1287 -0.1452)
OKLCHoklch(47.16% 0.194 311.6)
XYZxyz(16.4987, 8.9191, 37.8906)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2AA8 #54A82A
analogous
#3F2AA8 #7E2AA8 #A82A93
triadic
#7E2AA8 #A87E2A #2AA87E
tetradic
#7E2AA8 #A83F2A #54A82A #2A93A8
square
#7E2AA8 #A83F2A #54A82A #2A93A8
split-complementary
#7E2AA8 #93A82A #2AA83F
monochromatic
#351246 #591E77 #7E2AA8 #9F40CF #B871DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2AA8#FFFFFF#000000##FFFFFF
##7E2AA81.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)
#0050AC
Deuteranopia (green-blind)
#1556A5
Tritanopia (blue-blind)
#794767
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2aa8;
/* rgb */ color: rgb(126, 42, 168);
/* oklch */ color: oklch(47.2% 0.194 311.6);
Tailwind
colors: {
  custom: {
    50: '#a86cc3',
    500: '#7e2aa8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aa8;
$custom-light: #a86cc3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aa8",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 168
  },
  "hsl": {
    "h": 280,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.47159,
    "c": 0.19408,
    "h": 311.6
  },
  "luminance": 0.08919
}

Semantic roles & 50–950 ramp

primary
#7E2AA8
secondary
#88C36B
accent
#E34579
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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