#7E2EC2#7E2EC2

#7E2EC2 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.215 H 303.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7E2EC2
RGBrgb(126, 46, 194)
HSLhsl(272, 62%, 47%)
HSVhsv(272, 76%, 76%)
CMYKcmyk(35.1%, 76.3%, 0%, 23.9%)
CIE-LABlab(38.35, 59.71, -62.62)
CIE-LCHlch(38.35, 86.52, 313.63°)
OKLaboklab(49.55% 0.1199 -0.1785)
OKLCHoklch(49.55% 0.215 303.9)
XYZxyz(19.3165, 10.2847, 51.9960)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EC2 #72C22E
analogous
#342EC2 #7E2EC2 #C22EBC
triadic
#7E2EC2 #C27E2E #2EC27E
tetradic
#7E2EC2 #C2342E #72C22E #2EBCC2
square
#7E2EC2 #C2342E #72C22E #2EBCC2
split-complementary
#7E2EC2 #BCC22E #2EC234
monochromatic
#3E175F #5E2291 #7E2EC2 #9C56D7 #B988E3

Accessibility & contrast

On white

6.87
#7E2EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7E2EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2EC2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EC2#FFFFFF#000000##FFFFFF
##7E2EC21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#005ABF
Tritanopia (blue-blind)
#705477
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7e2ec2;
/* rgb */ color: rgb(126, 46, 194);
/* oklch */ color: oklch(49.6% 0.215 303.9);
Tailwind
colors: {
  custom: {
    50: '#a96fd5',
    500: '#7e2ec2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ec2;
$custom-light: #a96fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ec2",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 272.432,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.49552,
    "c": 0.21499,
    "h": 303.9
  },
  "luminance": 0.10285
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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