#7E299B#7E299B

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

Color values

HEX#7E299B
RGBrgb(126, 41, 155)
HSLhsl(285, 58%, 38%)
HSVhsv(285, 74%, 61%)
CMYKcmyk(18.7%, 73.5%, 0%, 39.2%)
CIE-LABlab(34.78, 53.19, -45.17)
CIE-LCHlch(34.78, 69.78, 319.66°)
OKLaboklab(46.13% 0.1315 -0.1272)
OKLCHoklch(46.13% 0.183 316)
XYZxyz(15.3126, 8.3886, 31.8166)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E299B #469B29
analogous
#45299B #7E299B #9B297F
triadic
#7E299B #9B7E29 #299B7E
tetradic
#7E299B #9B4529 #469B29 #297F9B
square
#7E299B #9B4529 #469B29 #297F9B
split-complementary
#7E299B #7F9B29 #299B45
monochromatic
#2F0F3A #571C6B #7E299B #A537CA #BB67D7

Accessibility & contrast

On white

7.84
#7E299B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E299B
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E299B#FFFFFF#000000##FFFFFF
##7E299B1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e299b;
/* rgb */ color: rgb(126, 41, 155);
/* oklch */ color: oklch(46.1% 0.183 316.0);
Tailwind
colors: {
  custom: {
    50: '#a76bb9',
    500: '#7e299b',
    950: '#000000',
  },
}
SCSS
$custom: #7e299b;
$custom-light: #a76bb9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e299b",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 155
  },
  "hsl": {
    "h": 284.737,
    "s": 58.163,
    "l": 38.431
  },
  "oklch": {
    "l": 0.46126,
    "c": 0.18295,
    "h": 316
  },
  "luminance": 0.08388
}

Semantic roles & 50–950 ramp

primary
#7E299B
secondary
#7ABD63
accent
#E1466E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E299B

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

Preview Lab → · Contrast checker → · Palette generator →

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