#7E2EE2#7E2EE2

#7E2EE2 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 52.2% C 0.246 H 296.8°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7E2EE2
RGBrgb(126, 46, 226)
HSLhsl(267, 76%, 53%)
HSVhsv(267, 80%, 89%)
CMYKcmyk(44.2%, 79.6%, 0%, 11.4%)
CIE-LABlab(41.02, 67.15, -76.73)
CIE-LCHlch(41.02, 101.96, 311.19°)
OKLaboklab(52.24% 0.1111 -0.2199)
OKLCHoklch(52.24% 0.246 296.8)
XYZxyz(23.3050, 11.8801, 73.0020)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EE2 #92E22E
analogous
#2E38E2 #7E2EE2 #D82EE2
triadic
#7E2EE2 #E27E2E #2EE27E
tetradic
#7E2EE2 #E22E38 #92E22E #2EE2D8
square
#7E2EE2 #E22E38 #92E22E #2EE2D8
split-complementary
#7E2EE2 #E2D82E #38E22E
monochromatic
#451283 #611AB9 #7E2EE2 #9F64E9 #C099F1

Accessibility & contrast

On white

6.22
#7E2EE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7E2EE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2EE2
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EE2#FFFFFF#000000##FFFFFF
##7E2EE21.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061E7
Deuteranopia (green-blind)
#005EDF
Tritanopia (blue-blind)
#636289
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e2ee2;
/* rgb */ color: rgb(126, 46, 226);
/* oklch */ color: oklch(52.2% 0.246 296.8);
Tailwind
colors: {
  custom: {
    50: '#ac71ec',
    500: '#7e2ee2',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ee2;
$custom-light: #ac71ec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ee2",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 226
  },
  "hsl": {
    "h": 266.667,
    "s": 75.63,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52242,
    "c": 0.24633,
    "h": 296.8
  },
  "luminance": 0.11881
}

Semantic roles & 50–950 ramp

primary
#7E2EE2
secondary
#BADD8F
accent
#F2369E
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7E2EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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