#7E2BC7#7E2BC7

#7E2BC7 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.7% C 0.223 H 302.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7E2BC7
RGBrgb(126, 43, 199)
HSLhsl(272, 64%, 47%)
HSVhsv(272, 78%, 78%)
CMYKcmyk(36.7%, 78.4%, 0%, 22%)
CIE-LABlab(38.35, 61.99, -65.54)
CIE-LCHlch(38.35, 90.21, 313.41°)
OKLaboklab(49.68% 0.1211 -0.187)
OKLCHoklch(49.68% 0.223 302.9)
XYZxyz(19.7744, 10.2869, 54.9655)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BC7 #74C72B
analogous
#302BC7 #7E2BC7 #C72BC2
triadic
#7E2BC7 #C77E2B #2BC77E
tetradic
#7E2BC7 #C7302B #74C72B #2BC2C7
square
#7E2BC7 #C7302B #74C72B #2BC2C7
split-complementary
#7E2BC7 #C2C72B #2BC730
monochromatic
#3E1562 #5E2095 #7E2BC7 #9C55DA #B987E5

Accessibility & contrast

On white

6.87
#7E2BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7E2BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2BC7
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BC7#FFFFFF#000000##FFFFFF
##7E2BC71.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#6F5579
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2bc7;
/* rgb */ color: rgb(126, 43, 199);
/* oklch */ color: oklch(49.7% 0.223 302.9);
Tailwind
colors: {
  custom: {
    50: '#aa6ed9',
    500: '#7e2bc7',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bc7;
$custom-light: #aa6ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bc7",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 199
  },
  "hsl": {
    "h": 271.923,
    "s": 64.463,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49679,
    "c": 0.22279,
    "h": 302.9
  },
  "luminance": 0.10287
}

Semantic roles & 50–950 ramp

primary
#7E2BC7
secondary
#A4CF7F
accent
#E7408F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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