#7E299E#7E299E

#7E299E is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.3% C 0.186 H 314.9°. Best body text is #FFFFFF at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#7E299E
RGBrgb(126, 41, 158)
HSLhsl(284, 59%, 39%)
HSVhsv(284, 74%, 62%)
CMYKcmyk(20.3%, 74.1%, 0%, 38%)
CIE-LABlab(34.98, 53.81, -46.66)
CIE-LCHlch(34.98, 71.22, 319.07°)
OKLaboklab(46.34% 0.1312 -0.1315)
OKLCHoklch(46.34% 0.186 314.9)
XYZxyz(15.5677, 8.4907, 33.1599)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E299E #499E29
analogous
#44299E #7E299E #9E2984
triadic
#7E299E #9E7E29 #299E7E
tetradic
#7E299E #9E4429 #499E29 #29849E
square
#7E299E #9E4429 #499E29 #29849E
split-complementary
#7E299E #849E29 #299E44
monochromatic
#31103D #571C6D #7E299E #A339CC #BA69D8

Accessibility & contrast

On white

7.78
#7E299E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#7E299E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E299E
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E299E#FFFFFF#000000##FFFFFF
##7E299E1.007.782.707.78
#FFFFFF7.781.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA1
Deuteranopia (green-blind)
#24549B
Tritanopia (blue-blind)
#7B4261
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e299e;
/* rgb */ color: rgb(126, 41, 158);
/* oklch */ color: oklch(46.3% 0.186 314.9);
Tailwind
colors: {
  custom: {
    50: '#a76bbb',
    500: '#7e299e',
    950: '#000000',
  },
}
SCSS
$custom: #7e299e;
$custom-light: #a76bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e299e",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 158
  },
  "hsl": {
    "h": 283.59,
    "s": 58.794,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46337,
    "c": 0.18576,
    "h": 314.9
  },
  "luminance": 0.0849
}

Semantic roles & 50–950 ramp

primary
#7E299E
secondary
#7DBF64
accent
#E24671
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E299E

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

Preview Lab → · Contrast checker → · Palette generator →

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