#7E2BC8#7E2BC8

#7E2BC8 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.8% C 0.224 H 302.7°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#7E2BC8
RGBrgb(126, 43, 200)
HSLhsl(272, 65%, 48%)
HSVhsv(272, 79%, 78%)
CMYKcmyk(37%, 78.5%, 0%, 21.6%)
CIE-LABlab(38.43, 62.22, -65.99)
CIE-LCHlch(38.43, 90.70, 313.32°)
OKLaboklab(49.76% 0.1208 -0.1883)
OKLCHoklch(49.76% 0.224 302.7)
XYZxyz(19.8909, 10.3335, 55.5790)
Luminance0.1033 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BC8 #75C82B
analogous
#302BC8 #7E2BC8 #C82BC3
triadic
#7E2BC8 #C87E2B #2BC87E
tetradic
#7E2BC8 #C8302B #75C82B #2BC3C8
square
#7E2BC8 #C8302B #75C82B #2BC3C8
split-complementary
#7E2BC8 #C3C82B #2BC830
monochromatic
#3F1563 #5E2096 #7E2BC8 #9C56DB #B988E5

Accessibility & contrast

On white

6.85
#7E2BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7E2BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2BC8
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BC8#FFFFFF#000000##FFFFFF
##7E2BC81.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#6E557A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2bc8;
/* rgb */ color: rgb(126, 43, 200);
/* oklch */ color: oklch(49.8% 0.224 302.7);
Tailwind
colors: {
  custom: {
    50: '#aa6eda',
    500: '#7e2bc8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bc8;
$custom-light: #aa6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bc8",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 200
  },
  "hsl": {
    "h": 271.72,
    "s": 64.609,
    "l": 47.647
  },
  "oklch": {
    "l": 0.49762,
    "c": 0.22375,
    "h": 302.7
  },
  "luminance": 0.10334
}

Semantic roles & 50–950 ramp

primary
#7E2BC8
secondary
#A5CF80
accent
#E8408F
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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