#7E2EDE#7E2EDE

#7E2EDE is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.9% C 0.242 H 297.6°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#7E2EDE
RGBrgb(126, 46, 222)
HSLhsl(267, 73%, 53%)
HSVhsv(267, 79%, 87%)
CMYKcmyk(43.2%, 79.3%, 0%, 12.9%)
CIE-LABlab(40.68, 66.21, -75.02)
CIE-LCHlch(40.68, 100.06, 311.43°)
OKLaboklab(51.89% 0.1123 -0.2149)
OKLCHoklch(51.89% 0.242 297.6)
XYZxyz(22.7625, 11.6631, 70.1450)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2EDE #8EDE2E
analogous
#2E36DE #7E2EDE #D62EDE
triadic
#7E2EDE #DE7E2E #2EDE7E
tetradic
#7E2EDE #DE2E36 #8EDE2E #2EDED6
square
#7E2EDE #DE2E36 #8EDE2E #2EDED6
split-complementary
#7E2EDE #DED62E #36DE2E
monochromatic
#44147E #611CB3 #7E2EDE #9F63E6 #BF98EF

Accessibility & contrast

On white

6.30
#7E2EDE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#7E2EDE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2EDE
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2EDE#FFFFFF#000000##FFFFFF
##7E2EDE1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060E3
Deuteranopia (green-blind)
#005EDB
Tritanopia (blue-blind)
#656087
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7e2ede;
/* rgb */ color: rgb(126, 46, 222);
/* oklch */ color: oklch(51.9% 0.242 297.6);
Tailwind
colors: {
  custom: {
    50: '#ac71ea',
    500: '#7e2ede',
    950: '#000000',
  },
}
SCSS
$custom: #7e2ede;
$custom-light: #ac71ea;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2ede",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 222
  },
  "hsl": {
    "h": 267.273,
    "s": 72.727,
    "l": 52.549
  },
  "oklch": {
    "l": 0.51893,
    "c": 0.24243,
    "h": 297.6
  },
  "luminance": 0.11664
}

Semantic roles & 50–950 ramp

primary
#7E2EDE
secondary
#B7DA8E
accent
#EF389C
background
#FBF7FE
surface
#F6EDFD
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7E2EDE

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

Preview Lab → · Contrast checker → · Palette generator →

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