#7E2DC9#7E2DC9

#7E2DC9 is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 50.0% C 0.223 H 302.3°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#7E2DC9
RGBrgb(126, 45, 201)
HSLhsl(271, 63%, 48%)
HSVhsv(271, 78%, 79%)
CMYKcmyk(37.3%, 77.6%, 0%, 21.2%)
CIE-LABlab(38.78, 61.70, -66.01)
CIE-LCHlch(38.78, 90.36, 313.07°)
OKLaboklab(50.03% 0.119 -0.1884)
OKLCHoklch(50.03% 0.223 302.3)
XYZxyz(20.0826, 10.5294, 56.2214)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2DC9 #78C92D
analogous
#302DC9 #7E2DC9 #C92DC6
triadic
#7E2DC9 #C97E2D #2DC97E
tetradic
#7E2DC9 #C9302D #78C92D #2DC6C9
square
#7E2DC9 #C9302D #78C92D #2DC6C9
split-complementary
#7E2DC9 #C6C92D #2DC930
monochromatic
#3F1765 #5F2297 #7E2DC9 #9C59DA #BA8BE5

Accessibility & contrast

On white

6.76
#7E2DC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7E2DC9
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2DC9#FFFFFF#000000##FFFFFF
##7E2DC91.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#005BC6
Tritanopia (blue-blind)
#6E577B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e2dc9;
/* rgb */ color: rgb(126, 45, 201);
/* oklch */ color: oklch(50.0% 0.223 302.3);
Tailwind
colors: {
  custom: {
    50: '#aa6fda',
    500: '#7e2dc9',
    950: '#000000',
  },
}
SCSS
$custom: #7e2dc9;
$custom-light: #aa6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2dc9",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 201
  },
  "hsl": {
    "h": 271.154,
    "s": 63.415,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50026,
    "c": 0.22283,
    "h": 302.3
  },
  "luminance": 0.10529
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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