#7E2EC1#7E2EC1

#7E2EC1 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.214 H 304.1°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#7E2EC1
RGBrgb(126, 46, 193)
HSLhsl(273, 62%, 47%)
HSVhsv(273, 76%, 76%)
CMYKcmyk(34.7%, 76.2%, 0%, 24.3%)
CIE-LABlab(38.27, 59.48, -62.17)
CIE-LCHlch(38.27, 86.04, 313.73°)
OKLaboklab(49.47% 0.1201 -0.1771)
OKLCHoklch(49.47% 0.214 304.1)
XYZxyz(19.2046, 10.2399, 51.4065)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EC1 #71C12E
analogous
#352EC1 #7E2EC1 #C12EBB
triadic
#7E2EC1 #C17E2E #2EC17E
tetradic
#7E2EC1 #C1352E #71C12E #2EBBC1
square
#7E2EC1 #C1352E #71C12E #2EBBC1
split-complementary
#7E2EC1 #BBC12E #2EC135
monochromatic
#3D165E #5E2290 #7E2EC1 #9C56D7 #B987E2

Accessibility & contrast

On white

6.89
#7E2EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7E2EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2EC1
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EC1#FFFFFF#000000##FFFFFF
##7E2EC11.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#005ABE
Tritanopia (blue-blind)
#715476
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2ec1;
/* rgb */ color: rgb(126, 46, 193);
/* oklch */ color: oklch(49.5% 0.214 304.1);
Tailwind
colors: {
  custom: {
    50: '#a96fd5',
    500: '#7e2ec1',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ec1;
$custom-light: #a96fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ec1",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 193
  },
  "hsl": {
    "h": 272.653,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49472,
    "c": 0.21401,
    "h": 304.1
  },
  "luminance": 0.1024
}

Semantic roles & 50–950 ramp

primary
#7E2EC1
secondary
#A2CC7F
accent
#E5438D
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #7E2EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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