#7E2EC9#7E2EC9

#7E2EC9 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.1% C 0.222 H 302.2°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#7E2EC9
RGBrgb(126, 46, 201)
HSLhsl(271, 63%, 48%)
HSVhsv(271, 77%, 79%)
CMYKcmyk(37.3%, 77.1%, 0%, 21.2%)
CIE-LABlab(38.91, 61.31, -65.79)
CIE-LCHlch(38.91, 89.93, 312.98°)
OKLaboklab(50.12% 0.1182 -0.1878)
OKLCHoklch(50.12% 0.222 302.2)
XYZxyz(20.1213, 10.6066, 56.2342)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EC9 #79C92E
analogous
#312EC9 #7E2EC9 #C92EC6
triadic
#7E2EC9 #C97E2E #2EC97E
tetradic
#7E2EC9 #C9312E #79C92E #2EC6C9
square
#7E2EC9 #C9312E #79C92E #2EC6C9
split-complementary
#7E2EC9 #C6C92E #2EC931
monochromatic
#401765 #5F2397 #7E2EC9 #9C5BD9 #BA8DE5

Accessibility & contrast

On white

6.73
#7E2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E2EC9
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EC9#FFFFFF#000000##FFFFFF
##7E2EC91.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#6E577B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7e2ec9;
/* rgb */ color: rgb(126, 46, 201);
/* oklch */ color: oklch(50.1% 0.222 302.2);
Tailwind
colors: {
  custom: {
    50: '#aa70da',
    500: '#7e2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ec9;
$custom-light: #aa70da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ec9",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 270.968,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50119,
    "c": 0.22187,
    "h": 302.2
  },
  "luminance": 0.10607
}

Semantic roles & 50–950 ramp

primary
#7E2EC9
secondary
#A8CF84
accent
#E64291
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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