#7E2DA3#7E2DA3

#7E2DA3 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 47.1% C 0.186 H 312.9°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#7E2DA3
RGBrgb(126, 45, 163)
HSLhsl(281, 57%, 41%)
HSVhsv(281, 72%, 64%)
CMYKcmyk(22.7%, 72.4%, 0%, 36.1%)
CIE-LABlab(35.90, 53.24, -48.19)
CIE-LCHlch(35.90, 71.81, 317.85°)
OKLaboklab(47.1% 0.1265 -0.1361)
OKLCHoklch(47.1% 0.186 312.9)
XYZxyz(16.1523, 8.9572, 35.5213)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DA3 #52A32D
analogous
#432DA3 #7E2DA3 #A32D8D
triadic
#7E2DA3 #A37E2D #2DA37E
tetradic
#7E2DA3 #A3432D #52A32D #2D8DA3
square
#7E2DA3 #A3432D #52A32D #2D8DA3
split-complementary
#7E2DA3 #8DA32D #2DA343
monochromatic
#341343 #592073 #7E2DA3 #A042CB #B872D8

Accessibility & contrast

On white

7.52
#7E2DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#7E2DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2DA3
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DA3#FFFFFF#000000##FFFFFF
##7E2DA31.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#2256A0
Tritanopia (blue-blind)
#7A4765
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2da3;
/* rgb */ color: rgb(126, 45, 163);
/* oklch */ color: oklch(47.1% 0.186 312.9);
Tailwind
colors: {
  custom: {
    50: '#a76ebf',
    500: '#7e2da3',
    950: '#000000',
  },
}
SCSS
$custom: #7e2da3;
$custom-light: #a76ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2da3",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 281.186,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.47099,
    "c": 0.18579,
    "h": 312.9
  },
  "luminance": 0.08957
}

Semantic roles & 50–950 ramp

primary
#7E2DA3
secondary
#86C06C
accent
#E04878
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7E2DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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