#7E2DCA#7E2DCA

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

Color values

HEX#7E2DCA
RGBrgb(126, 45, 202)
HSLhsl(271, 64%, 48%)
HSVhsv(271, 78%, 79%)
CMYKcmyk(37.6%, 77.7%, 0%, 20.8%)
CIE-LABlab(38.86, 61.93, -66.46)
CIE-LCHlch(38.86, 90.84, 312.98°)
OKLaboklab(50.11% 0.1187 -0.1897)
OKLCHoklch(50.11% 0.224 302)
XYZxyz(20.2007, 10.5766, 56.8429)
Luminance0.1058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DCA #79CA2D
analogous
#2F2DCA #7E2DCA #CA2DC7
triadic
#7E2DCA #CA7E2D #2DCA7E
tetradic
#7E2DCA #CA2F2D #79CA2D #2DC7CA
square
#7E2DCA #CA2F2D #79CA2D #2DC7CA
split-complementary
#7E2DCA #C7CA2D #2DCA2F
monochromatic
#401766 #5F2298 #7E2DCA #9C5ADA #BA8CE5

Accessibility & contrast

On white

6.74
#7E2DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E2DCA
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DCA#FFFFFF#000000##FFFFFF
##7E2DCA1.006.743.126.74
#FFFFFF6.741.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005BC7
Tritanopia (blue-blind)
#6D577B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e2dca;
/* rgb */ color: rgb(126, 45, 202);
/* oklch */ color: oklch(50.1% 0.224 302.0);
Tailwind
colors: {
  custom: {
    50: '#aa6fdb',
    500: '#7e2dca',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dca;
$custom-light: #aa6fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dca",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 270.955,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.50108,
    "c": 0.2238,
    "h": 302
  },
  "luminance": 0.10577
}

Semantic roles & 50–950 ramp

primary
#7E2DCA
secondary
#A8CF83
accent
#E74191
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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