#7E2BCA#7E2BCA

#7E2BCA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.9% C 0.226 H 302.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#7E2BCA
RGBrgb(126, 43, 202)
HSLhsl(271, 65%, 48%)
HSVhsv(271, 79%, 79%)
CMYKcmyk(37.6%, 78.7%, 0%, 20.8%)
CIE-LABlab(38.60, 62.68, -66.88)
CIE-LCHlch(38.60, 91.66, 313.14°)
OKLaboklab(49.93% 0.1203 -0.191)
OKLCHoklch(49.93% 0.226 302.2)
XYZxyz(20.1262, 10.4276, 56.8181)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BCA #77CA2B
analogous
#2F2BCA #7E2BCA #CA2BC6
triadic
#7E2BCA #CA7E2B #2BCA7E
tetradic
#7E2BCA #CA2F2B #77CA2B #2BC6CA
square
#7E2BCA #CA2F2B #77CA2B #2BC6CA
split-complementary
#7E2BCA #C6CA2B #2BCA2F
monochromatic
#3F1665 #5F2098 #7E2BCA #9C57DB #BA89E6

Accessibility & contrast

On white

6.81
#7E2BCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7E2BCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2BCA
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BCA#FFFFFF#000000##FFFFFF
##7E2BCA1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#6E567B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e2bca;
/* rgb */ color: rgb(126, 43, 202);
/* oklch */ color: oklch(49.9% 0.226 302.2);
Tailwind
colors: {
  custom: {
    50: '#aa6edb',
    500: '#7e2bca',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bca;
$custom-light: #aa6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bca",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 202
  },
  "hsl": {
    "h": 271.321,
    "s": 64.898,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49928,
    "c": 0.22568,
    "h": 302.2
  },
  "luminance": 0.10428
}

Semantic roles & 50–950 ramp

primary
#7E2BCA
secondary
#A7D081
accent
#E84090
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2BCA

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

Preview Lab → · Contrast checker → · Palette generator →

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