#7E2BCE#7E2BCE

#7E2BCE is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.3% C 0.230 H 301.3°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#7E2BCE
RGBrgb(126, 43, 206)
HSLhsl(271, 65%, 49%)
HSVhsv(271, 79%, 81%)
CMYKcmyk(38.8%, 79.1%, 0%, 19.2%)
CIE-LABlab(38.93, 63.59, -68.66)
CIE-LCHlch(38.93, 93.58, 312.81°)
OKLaboklab(50.26% 0.1191 -0.1962)
OKLCHoklch(50.26% 0.23 301.3)
XYZxyz(20.6059, 10.6195, 59.3447)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2BCE #7BCE2B
analogous
#2C2BCE #7E2BCE #CE2BCD
triadic
#7E2BCE #CE7E2B #2BCE7E
tetradic
#7E2BCE #CE2C2B #7BCE2B #2BCDCE
square
#7E2BCE #CE2C2B #7BCE2B #2BCDCE
split-complementary
#7E2BCE #CDCE2B #2BCE2C
monochromatic
#401669 #5F209B #7E2BCE #9C5ADC #BB8CE7

Accessibility & contrast

On white

6.72
#7E2BCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#7E2BCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2BCE
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2BCE#FFFFFF#000000##FFFFFF
##7E2BCE1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#6C587D
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e2bce;
/* rgb */ color: rgb(126, 43, 206);
/* oklch */ color: oklch(50.3% 0.230 301.3);
Tailwind
colors: {
  custom: {
    50: '#ab6fde',
    500: '#7e2bce',
    950: '#000000',
  },
}
SCSS
$custom: #7e2bce;
$custom-light: #ab6fde;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2bce",
  "rgb": {
    "r": 126,
    "g": 43,
    "b": 206
  },
  "hsl": {
    "h": 270.552,
    "s": 65.462,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50262,
    "c": 0.22953,
    "h": 301.3
  },
  "luminance": 0.1062
}

Semantic roles & 50–950 ramp

primary
#7E2BCE
secondary
#AAD184
accent
#E83F92
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2BCE

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

Preview Lab → · Contrast checker → · Palette generator →

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