#7E2CC8#7E2CC8

#7E2CC8 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.9% C 0.223 H 302.6°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#7E2CC8
RGBrgb(126, 44, 200)
HSLhsl(272, 64%, 48%)
HSVhsv(272, 78%, 78%)
CMYKcmyk(37%, 78%, 0%, 21.6%)
CIE-LABlab(38.56, 61.85, -65.78)
CIE-LCHlch(38.56, 90.29, 313.24°)
OKLaboklab(49.85% 0.12 -0.1877)
OKLCHoklch(49.85% 0.223 302.6)
XYZxyz(19.9277, 10.4071, 55.5913)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2CC8 #76C82C
analogous
#302CC8 #7E2CC8 #C82CC4
triadic
#7E2CC8 #C87E2C #2CC87E
tetradic
#7E2CC8 #C8302C #76C82C #2CC4C8
square
#7E2CC8 #C8302C #76C82C #2CC4C8
split-complementary
#7E2CC8 #C4C82C #2CC830
monochromatic
#3F1664 #5E2196 #7E2CC8 #9C57DA #BA89E5

Accessibility & contrast

On white

6.82
#7E2CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#7E2CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2CC8
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2CC8#FFFFFF#000000##FFFFFF
##7E2CC81.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#6E567A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e2cc8;
/* rgb */ color: rgb(126, 44, 200);
/* oklch */ color: oklch(49.9% 0.223 302.6);
Tailwind
colors: {
  custom: {
    50: '#aa6fda',
    500: '#7e2cc8',
    950: '#000000',
  },
}
SCSS
$custom: #7e2cc8;
$custom-light: #aa6fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2cc8",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 200
  },
  "hsl": {
    "h": 271.538,
    "s": 63.934,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49852,
    "c": 0.22281,
    "h": 302.6
  },
  "luminance": 0.10407
}

Semantic roles & 50–950 ramp

primary
#7E2CC8
secondary
#A6CF81
accent
#E74190
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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