#7E2BA6#7E2BA6

#7E2BA6 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 47.1% C 0.191 H 312.1°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#7E2BA6
RGBrgb(126, 43, 166)
HSLhsl(280, 59%, 41%)
HSVhsv(280, 74%, 65%)
CMYKcmyk(24.1%, 74.1%, 0%, 34.9%)
CIE-LABlab(35.82, 54.69, -50.12)
CIE-LCHlch(35.82, 74.19, 317.50°)
OKLaboklab(47.11% 0.1281 -0.1417)
OKLCHoklch(47.11% 0.191 312.1)
XYZxyz(16.3497, 8.9170, 36.9289)
Luminance0.0892 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BA6 #53A62B
analogous
#402BA6 #7E2BA6 #A62B90
triadic
#7E2BA6 #A67E2B #2BA67E
tetradic
#7E2BA6 #A6402B #53A62B #2B90A6
square
#7E2BA6 #A6402B #53A62B #2B90A6
split-complementary
#7E2BA6 #90A62B #2BA640
monochromatic
#341245 #591E75 #7E2BA6 #A041CE #B871DA

Accessibility & contrast

On white

7.54
#7E2BA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#7E2BA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2BA6
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BA6#FFFFFF#000000##FFFFFF
##7E2BA61.007.542.787.54
#FFFFFF7.541.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A9
Deuteranopia (green-blind)
#1A56A3
Tritanopia (blue-blind)
#794766
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7e2ba6;
/* rgb */ color: rgb(126, 43, 166);
/* oklch */ color: oklch(47.1% 0.191 312.1);
Tailwind
colors: {
  custom: {
    50: '#a86dc1',
    500: '#7e2ba6',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ba6;
$custom-light: #a86dc1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ba6",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 166
  },
  "hsl": {
    "h": 280.488,
    "s": 58.852,
    "l": 40.98
  },
  "oklch": {
    "l": 0.47111,
    "c": 0.19104,
    "h": 312.1
  },
  "luminance": 0.08917
}

Semantic roles & 50–950 ramp

primary
#7E2BA6
secondary
#87C16B
accent
#E24679
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7E2BA6

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

Preview Lab → · Contrast checker → · Palette generator →

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