#7E2ECA#7E2ECA

#7E2ECA is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.2% C 0.223 H 301.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7E2ECA
RGBrgb(126, 46, 202)
HSLhsl(271, 63%, 49%)
HSVhsv(271, 77%, 79%)
CMYKcmyk(37.6%, 77.2%, 0%, 20.8%)
CIE-LABlab(38.99, 61.55, -66.24)
CIE-LCHlch(38.99, 90.42, 312.90°)
OKLaboklab(50.2% 0.1179 -0.1891)
OKLCHoklch(50.2% 0.223 301.9)
XYZxyz(20.2393, 10.6538, 56.8558)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2ECA #7ACA2E
analogous
#302ECA #7E2ECA #CA2EC8
triadic
#7E2ECA #CA7E2E #2ECA7E
tetradic
#7E2ECA #CA302E #7ACA2E #2EC8CA
square
#7E2ECA #CA302E #7ACA2E #2EC8CA
split-complementary
#7E2ECA #C8CA2E #2ECA30
monochromatic
#401766 #5F2398 #7E2ECA #9C5BDA #BA8DE5

Accessibility & contrast

On white

6.71
#7E2ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7E2ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2ECA
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2ECA#FFFFFF#000000##FFFFFF
##7E2ECA1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#6D577B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e2eca;
/* rgb */ color: rgb(126, 46, 202);
/* oklch */ color: oklch(50.2% 0.223 301.9);
Tailwind
colors: {
  custom: {
    50: '#aa70db',
    500: '#7e2eca',
    950: '#000000',
  },
}
SCSS
$custom: #7e2eca;
$custom-light: #aa70db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2eca",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 270.769,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.50202,
    "c": 0.22285,
    "h": 301.9
  },
  "luminance": 0.10654
}

Semantic roles & 50–950 ramp

primary
#7E2ECA
secondary
#A9CF84
accent
#E64292
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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