#7E299A#7E299A

#7E299A is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.1% C 0.182 H 316.3°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#7E299A
RGBrgb(126, 41, 154)
HSLhsl(285, 58%, 38%)
HSVhsv(285, 73%, 60%)
CMYKcmyk(18.2%, 73.4%, 0%, 39.6%)
CIE-LABlab(34.71, 52.98, -44.67)
CIE-LCHlch(34.71, 69.30, 319.87°)
OKLaboklab(46.06% 0.1317 -0.1257)
OKLCHoklch(46.06% 0.182 316.3)
XYZxyz(15.2290, 8.3552, 31.3761)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E299A #459A29
analogous
#45299A #7E299A #9A297D
triadic
#7E299A #9A7E29 #299A7E
tetradic
#7E299A #9A4529 #459A29 #297D9A
square
#7E299A #9A4529 #459A29 #297D9A
split-complementary
#7E299A #7D9A29 #299A45
monochromatic
#2F0F39 #561C6A #7E299A #A537CA #BB67D7

Accessibility & contrast

On white

7.86
#7E299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#7E299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E299A
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E299A#FFFFFF#000000##FFFFFF
##7E299A1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9D
Deuteranopia (green-blind)
#295497
Tritanopia (blue-blind)
#7C405F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e299a;
/* rgb */ color: rgb(126, 41, 154);
/* oklch */ color: oklch(46.1% 0.182 316.3);
Tailwind
colors: {
  custom: {
    50: '#a76bb8',
    500: '#7e299a',
    950: '#000000',
  },
}
SCSS
$custom: #7e299a;
$custom-light: #a76bb8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e299a",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 285.133,
    "s": 57.949,
    "l": 38.235
  },
  "oklch": {
    "l": 0.46057,
    "c": 0.18202,
    "h": 316.3
  },
  "luminance": 0.08355
}

Semantic roles & 50–950 ramp

primary
#7E299A
secondary
#79BD62
accent
#E1476D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E299A

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

Preview Lab → · Contrast checker → · Palette generator →

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