#7E299D#7E299D

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

Color values

HEX#7E299D
RGBrgb(126, 41, 157)
HSLhsl(284, 59%, 39%)
HSVhsv(284, 74%, 62%)
CMYKcmyk(19.7%, 73.9%, 0%, 38.4%)
CIE-LABlab(34.92, 53.60, -46.16)
CIE-LCHlch(34.92, 70.74, 319.26°)
OKLaboklab(46.27% 0.1313 -0.1301)
OKLCHoklch(46.27% 0.185 315.3)
XYZxyz(15.4819, 8.4564, 32.7085)
Luminance0.0846 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E299D #489D29
analogous
#44299D #7E299D #9D2982
triadic
#7E299D #9D7E29 #299D7E
tetradic
#7E299D #9D4429 #489D29 #29829D
square
#7E299D #9D4429 #489D29 #29829D
split-complementary
#7E299D #829D29 #299D44
monochromatic
#30103C #571C6C #7E299D #A438CB #BA69D8

Accessibility & contrast

On white

7.80
#7E299D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#7E299D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E299D
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E299D#FFFFFF#000000##FFFFFF
##7E299D1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#25549A
Tritanopia (blue-blind)
#7C4261
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e299d;
/* rgb */ color: rgb(126, 41, 157);
/* oklch */ color: oklch(46.3% 0.185 315.3);
Tailwind
colors: {
  custom: {
    50: '#a76bbb',
    500: '#7e299d',
    950: '#000000',
  },
}
SCSS
$custom: #7e299d;
$custom-light: #a76bbb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e299d",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 157
  },
  "hsl": {
    "h": 283.966,
    "s": 58.586,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46267,
    "c": 0.18483,
    "h": 315.3
  },
  "luminance": 0.08456
}

Semantic roles & 50–950 ramp

primary
#7E299D
secondary
#7CBE64
accent
#E24670
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E299D

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

Preview Lab → · Contrast checker → · Palette generator →

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