#7E2BC9#7E2BC9

#7E2BC9 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.225 H 302.4°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7E2BC9
RGBrgb(126, 43, 201)
HSLhsl(272, 65%, 48%)
HSVhsv(272, 79%, 79%)
CMYKcmyk(37.3%, 78.6%, 0%, 21.2%)
CIE-LABlab(38.52, 62.45, -66.43)
CIE-LCHlch(38.52, 91.18, 313.23°)
OKLaboklab(49.85% 0.1205 -0.1897)
OKLCHoklch(49.85% 0.225 302.4)
XYZxyz(20.0081, 10.3804, 56.1965)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BC9 #76C92B
analogous
#2F2BC9 #7E2BC9 #C92BC5
triadic
#7E2BC9 #C97E2B #2BC97E
tetradic
#7E2BC9 #C92F2B #76C92B #2BC5C9
square
#7E2BC9 #C92F2B #76C92B #2BC5C9
split-complementary
#7E2BC9 #C5C92B #2BC92F
monochromatic
#3F1564 #5E2097 #7E2BC9 #9C56DB #BA89E6

Accessibility & contrast

On white

6.83
#7E2BC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7E2BC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2BC9
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BC9#FFFFFF#000000##FFFFFF
##7E2BC91.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CD
Deuteranopia (green-blind)
#005AC6
Tritanopia (blue-blind)
#6E567A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e2bc9;
/* rgb */ color: rgb(126, 43, 201);
/* oklch */ color: oklch(49.8% 0.225 302.4);
Tailwind
colors: {
  custom: {
    50: '#aa6eda',
    500: '#7e2bc9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bc9;
$custom-light: #aa6eda;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bc9",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 201
  },
  "hsl": {
    "h": 271.519,
    "s": 64.754,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49845,
    "c": 0.22471,
    "h": 302.4
  },
  "luminance": 0.1038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2BC9

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

Preview Lab → · Contrast checker → · Palette generator →

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