#7E2C99#7E2C99

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

Color values

HEX#7E2C99
RGBrgb(126, 44, 153)
HSLhsl(285, 55%, 39%)
HSVhsv(285, 71%, 60%)
CMYKcmyk(17.6%, 71.2%, 0%, 40%)
CIE-LABlab(35.08, 51.55, -43.47)
CIE-LCHlch(35.08, 67.43, 319.86°)
OKLaboklab(46.3% 0.1286 -0.1222)
OKLCHoklch(46.3% 0.177 316.5)
XYZxyz(15.2538, 8.5375, 30.9752)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2C99 #47992C
analogous
#472C99 #7E2C99 #992C7D
triadic
#7E2C99 #997E2C #2C997E
tetradic
#7E2C99 #99472C #47992C #2C7D99
square
#7E2C99 #99472C #47992C #2C7D99
split-complementary
#7E2C99 #7D992C #2C9947
monochromatic
#30113A #571E69 #7E2C99 #A43BC7 #BA6BD4

Accessibility & contrast

On white

7.76
#7E2C99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#7E2C99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2C99
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2C99#FFFFFF#000000##FFFFFF
##7E2C991.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#2C5597
Tritanopia (blue-blind)
#7C425F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #7e2c99;
/* rgb */ color: rgb(126, 44, 153);
/* oklch */ color: oklch(46.3% 0.177 316.5);
Tailwind
colors: {
  custom: {
    50: '#a76db8',
    500: '#7e2c99',
    950: '#000000',
  },
}
SCSS
$custom: #7e2c99;
$custom-light: #a76db8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2c99",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 153
  },
  "hsl": {
    "h": 285.138,
    "s": 55.33,
    "l": 38.627
  },
  "oklch": {
    "l": 0.46297,
    "c": 0.17741,
    "h": 316.5
  },
  "luminance": 0.08537
}

Semantic roles & 50–950 ramp

primary
#7E2C99
secondary
#7BBB66
accent
#DF496E
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2C99

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

Preview Lab → · Contrast checker → · Palette generator →

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