#7E2D9A#7E2D9A

#7E2D9A is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.177 H 316.0°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#7E2D9A
RGBrgb(126, 45, 154)
HSLhsl(285, 55%, 39%)
HSVhsv(285, 71%, 60%)
CMYKcmyk(18.2%, 70.8%, 0%, 39.6%)
CIE-LABlab(35.29, 51.34, -43.73)
CIE-LCHlch(35.29, 67.44, 319.57°)
OKLaboklab(46.47% 0.1274 -0.123)
OKLCHoklch(46.47% 0.177 316)
XYZxyz(15.3744, 8.6461, 31.4246)
Luminance0.0864 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D9A #499A2D
analogous
#482D9A #7E2D9A #9A2D80
triadic
#7E2D9A #9A7E2D #2D9A7E
tetradic
#7E2D9A #9A482D #499A2D #2D809A
square
#7E2D9A #9A482D #499A2D #2D809A
split-complementary
#7E2D9A #809A2D #2D9A48
monochromatic
#31113B #571F6B #7E2D9A #A33EC7 #BA6DD4

Accessibility & contrast

On white

7.70
#7E2D9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#7E2D9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2D9A
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2D9A#FFFFFF#000000##FFFFFF
##7E2D9A1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9D
Deuteranopia (green-blind)
#2C5598
Tritanopia (blue-blind)
#7C4360
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7e2d9a;
/* rgb */ color: rgb(126, 45, 154);
/* oklch */ color: oklch(46.5% 0.177 316.0);
Tailwind
colors: {
  custom: {
    50: '#a76db8',
    500: '#7e2d9a',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d9a;
$custom-light: #a76db8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d9a",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 154
  },
  "hsl": {
    "h": 284.587,
    "s": 54.774,
    "l": 39.02
  },
  "oklch": {
    "l": 0.46472,
    "c": 0.1771,
    "h": 316
  },
  "luminance": 0.08645
}

Semantic roles & 50–950 ramp

primary
#7E2D9A
secondary
#7DBB67
accent
#DE4A70
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2D9A

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

Preview Lab → · Contrast checker → · Palette generator →

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