#7E2ED7#7E2ED7

#7E2ED7 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.3% C 0.236 H 299.0°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#7E2ED7
RGBrgb(126, 46, 215)
HSLhsl(268, 68%, 51%)
HSVhsv(268, 79%, 84%)
CMYKcmyk(41.4%, 78.6%, 0%, 15.7%)
CIE-LABlab(40.07, 64.57, -71.99)
CIE-LCHlch(40.07, 96.70, 311.89°)
OKLaboklab(51.29% 0.1143 -0.206)
OKLCHoklch(51.29% 0.236 299)
XYZxyz(21.8438, 11.2956, 65.3062)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2ED7 #87D72E
analogous
#2E32D7 #7E2ED7 #D22ED7
triadic
#7E2ED7 #D77E2E #2ED77E
tetradic
#7E2ED7 #D72E32 #87D72E #2ED7D2
square
#7E2ED7 #D72E32 #87D72E #2ED7D2
split-complementary
#7E2ED7 #D7D22E #32D72E
monochromatic
#431674 #6020A8 #7E2ED7 #9E61E1 #BD95EB

Accessibility & contrast

On white

6.44
#7E2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#7E2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2ED7
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2ED7#FFFFFF#000000##FFFFFF
##7E2ED71.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDC
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#685D83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7e2ed7;
/* rgb */ color: rgb(126, 46, 215);
/* oklch */ color: oklch(51.3% 0.236 299.0);
Tailwind
colors: {
  custom: {
    50: '#ab70e5',
    500: '#7e2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ed7;
$custom-light: #ab70e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ed7",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 268.402,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51291,
    "c": 0.23559,
    "h": 299
  },
  "luminance": 0.11296
}

Semantic roles & 50–950 ramp

primary
#7E2ED7
secondary
#B2D68B
accent
#EB3D99
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7E2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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