#7E2BA4#7E2BA4

#7E2BA4 is a mid, vivid purple. Relative luminance 0.088; OKLCH L 47.0% C 0.189 H 312.8°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7E2BA4
RGBrgb(126, 43, 164)
HSLhsl(281, 58%, 41%)
HSVhsv(281, 74%, 64%)
CMYKcmyk(23.2%, 73.8%, 0%, 35.7%)
CIE-LABlab(35.68, 54.27, -49.15)
CIE-LCHlch(35.68, 73.22, 317.83°)
OKLaboklab(46.97% 0.1284 -0.1389)
OKLCHoklch(46.97% 0.189 312.8)
XYZxyz(16.1677, 8.8442, 35.9702)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BA4 #51A42B
analogous
#412BA4 #7E2BA4 #A42B8D
triadic
#7E2BA4 #A47E2B #2BA47E
tetradic
#7E2BA4 #A4412B #51A42B #2B8DA4
square
#7E2BA4 #A4412B #51A42B #2B8DA4
split-complementary
#7E2BA4 #8DA42B #2BA441
monochromatic
#331243 #591E74 #7E2BA4 #A03FCD #B870D9

Accessibility & contrast

On white

7.58
#7E2BA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7E2BA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BA4
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BA4#FFFFFF#000000##FFFFFF
##7E2BA41.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A7
Deuteranopia (green-blind)
#1E56A1
Tritanopia (blue-blind)
#7A4665
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2ba4;
/* rgb */ color: rgb(126, 43, 164);
/* oklch */ color: oklch(47.0% 0.189 312.8);
Tailwind
colors: {
  custom: {
    50: '#a76dc0',
    500: '#7e2ba4',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ba4;
$custom-light: #a76dc0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ba4",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 164
  },
  "hsl": {
    "h": 281.157,
    "s": 58.454,
    "l": 40.588
  },
  "oklch": {
    "l": 0.46965,
    "c": 0.18912,
    "h": 312.8
  },
  "luminance": 0.08844
}

Semantic roles & 50–950 ramp

primary
#7E2BA4
secondary
#85C16A
accent
#E24677
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2BA4

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

Preview Lab → · Contrast checker → · Palette generator →

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