#7E2D99#7E2D99

#7E2D99 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.176 H 316.4°. Best body text is #FFFFFF at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#7E2D99
RGBrgb(126, 45, 153)
HSLhsl(285, 55%, 39%)
HSVhsv(285, 71%, 60%)
CMYKcmyk(17.6%, 70.6%, 0%, 40%)
CIE-LABlab(35.23, 51.13, -43.23)
CIE-LCHlch(35.23, 66.96, 319.79°)
OKLaboklab(46.4% 0.1275 -0.1215)
OKLCHoklch(46.4% 0.176 316.4)
XYZxyz(15.2915, 8.6129, 30.9878)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D99 #48992D
analogous
#482D99 #7E2D99 #992D7E
triadic
#7E2D99 #997E2D #2D997E
tetradic
#7E2D99 #99482D #48992D #2D7E99
square
#7E2D99 #99482D #48992D #2D7E99
split-complementary
#7E2D99 #7E992D #2D9948
monochromatic
#30113A #571F6A #7E2D99 #A43DC6 #BA6CD4

Accessibility & contrast

On white

7.71
#7E2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#7E2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D99
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D99#FFFFFF#000000##FFFFFF
##7E2D991.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#2D5597
Tritanopia (blue-blind)
#7C4260
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2d99;
/* rgb */ color: rgb(126, 45, 153);
/* oklch */ color: oklch(46.4% 0.176 316.4);
Tailwind
colors: {
  custom: {
    50: '#a76db8',
    500: '#7e2d99',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d99;
$custom-light: #a76db8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d99",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 285,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.46404,
    "c": 0.17614,
    "h": 316.4
  },
  "luminance": 0.08612
}

Semantic roles & 50–950 ramp

primary
#7E2D99
secondary
#7CBB67
accent
#DE4A6F
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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