#7E2EC8#7E2EC8

#7E2EC8 is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.0% C 0.221 H 302.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#7E2EC8
RGBrgb(126, 46, 200)
HSLhsl(271, 63%, 48%)
HSVhsv(271, 77%, 78%)
CMYKcmyk(37%, 77%, 0%, 21.6%)
CIE-LABlab(38.83, 61.08, -65.34)
CIE-LCHlch(38.83, 89.45, 313.07°)
OKLaboklab(50.04% 0.1184 -0.1865)
OKLCHoklch(50.04% 0.221 302.4)
XYZxyz(20.0040, 10.5597, 55.6167)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EC8 #78C82E
analogous
#312EC8 #7E2EC8 #C82EC5
triadic
#7E2EC8 #C87E2E #2EC87E
tetradic
#7E2EC8 #C8312E #78C82E #2EC5C8
square
#7E2EC8 #C8312E #78C82E #2EC5C8
split-complementary
#7E2EC8 #C5C82E #2EC831
monochromatic
#3F1764 #5F2396 #7E2EC8 #9C5AD9 #BA8CE5

Accessibility & contrast

On white

6.75
#7E2EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#7E2EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2EC8
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EC8#FFFFFF#000000##FFFFFF
##7E2EC81.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#6E577A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e2ec8;
/* rgb */ color: rgb(126, 46, 200);
/* oklch */ color: oklch(50.0% 0.221 302.4);
Tailwind
colors: {
  custom: {
    50: '#aa70da',
    500: '#7e2ec8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ec8;
$custom-light: #aa70da;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ec8",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 200
  },
  "hsl": {
    "h": 271.169,
    "s": 62.602,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50038,
    "c": 0.22088,
    "h": 302.4
  },
  "luminance": 0.1056
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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