#7E2FCE#7E2FCE

#7E2FCE is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.6% C 0.226 H 300.9°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7E2FCE
RGBrgb(126, 47, 206)
HSLhsl(270, 63%, 50%)
HSVhsv(270, 77%, 81%)
CMYKcmyk(38.8%, 77.2%, 0%, 19.2%)
CIE-LABlab(39.45, 62.09, -67.81)
CIE-LCHlch(39.45, 91.94, 312.48°)
OKLaboklab(50.63% 0.1161 -0.1937)
OKLCHoklch(50.63% 0.226 300.9)
XYZxyz(20.7585, 10.9247, 59.3956)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2FCE #7FCE2F
analogous
#2F30CE #7E2FCE #CD2FCE
triadic
#7E2FCE #CE7E2F #2FCE7E
tetradic
#7E2FCE #CE2F30 #7FCE2F #2FCECD
square
#7E2FCE #CE2F30 #7FCE2F #2FCECD
split-complementary
#7E2FCE #CECD2F #30CE2F
monochromatic
#41186A #60249C #7E2FCE #9D60DB #BB91E6

Accessibility & contrast

On white

6.59
#7E2FCE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7E2FCE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2FCE
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2FCE#FFFFFF#000000##FFFFFF
##7E2FCE1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD2
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#6C5A7E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7e2fce;
/* rgb */ color: rgb(126, 47, 206);
/* oklch */ color: oklch(50.6% 0.226 300.9);
Tailwind
colors: {
  custom: {
    50: '#aa70de',
    500: '#7e2fce',
    950: '#000000',
  },
}
SCSS
$custom: #7e2fce;
$custom-light: #aa70de;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2fce",
  "rgb": {
    "r": 126,
    "g": 47,
    "b": 206
  },
  "hsl": {
    "h": 269.811,
    "s": 62.846,
    "l": 49.608
  },
  "oklch": {
    "l": 0.50626,
    "c": 0.22582,
    "h": 300.9
  },
  "luminance": 0.10925
}

Semantic roles & 50–950 ramp

primary
#7E2FCE
secondary
#ADD188
accent
#E64294
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2FCE

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

Preview Lab → · Contrast checker → · Palette generator →

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