#7E299C#7E299C

#7E299C is a mid, vivid purple. Relative luminance 0.084; OKLCH L 46.2% C 0.184 H 315.6°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#7E299C
RGBrgb(126, 41, 156)
HSLhsl(284, 58%, 39%)
HSVhsv(284, 74%, 61%)
CMYKcmyk(19.2%, 73.7%, 0%, 38.8%)
CIE-LABlab(34.85, 53.39, -45.66)
CIE-LCHlch(34.85, 70.26, 319.46°)
OKLaboklab(46.2% 0.1314 -0.1286)
OKLCHoklch(46.2% 0.184 315.6)
XYZxyz(15.3969, 8.4224, 32.2607)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E299C #479C29
analogous
#44299C #7E299C #9C2980
triadic
#7E299C #9C7E29 #299C7E
tetradic
#7E299C #9C4429 #479C29 #29809C
square
#7E299C #9C4429 #479C29 #29809C
split-complementary
#7E299C #809C29 #299C44
monochromatic
#30103B #571C6C #7E299C #A438CB #BA68D7

Accessibility & contrast

On white

7.82
#7E299C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#7E299C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E299C
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E299C#FFFFFF#000000##FFFFFF
##7E299C1.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#275499
Tritanopia (blue-blind)
#7C4160
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e299c;
/* rgb */ color: rgb(126, 41, 156);
/* oklch */ color: oklch(46.2% 0.184 315.6);
Tailwind
colors: {
  custom: {
    50: '#a76bba',
    500: '#7e299c',
    950: '#000000',
  },
}
SCSS
$custom: #7e299c;
$custom-light: #a76bba;
$custom-dark: #000000;
JSON
{
  "hex": "#7e299c",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 156
  },
  "hsl": {
    "h": 284.348,
    "s": 58.376,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46196,
    "c": 0.18389,
    "h": 315.6
  },
  "luminance": 0.08422
}

Semantic roles & 50–950 ramp

primary
#7E299C
secondary
#7BBE63
accent
#E2466F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E299C

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

Preview Lab → · Contrast checker → · Palette generator →

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