#7E2CCA#7E2CCA

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

Color values

HEX#7E2CCA
RGBrgb(126, 44, 202)
HSLhsl(271, 64%, 48%)
HSVhsv(271, 78%, 79%)
CMYKcmyk(37.6%, 78.2%, 0%, 20.8%)
CIE-LABlab(38.73, 62.31, -66.67)
CIE-LCHlch(38.73, 91.25, 313.06°)
OKLaboklab(50.02% 0.1195 -0.1904)
OKLCHoklch(50.02% 0.225 302.1)
XYZxyz(20.1630, 10.5012, 56.8303)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2CCA #78CA2C
analogous
#2F2CCA #7E2CCA #CA2CC7
triadic
#7E2CCA #CA7E2C #2CCA7E
tetradic
#7E2CCA #CA2F2C #78CA2C #2CC7CA
square
#7E2CCA #CA2F2C #78CA2C #2CC7CA
split-complementary
#7E2CCA #C7CA2C #2CCA2F
monochromatic
#3F1665 #5F2198 #7E2CCA #9C58DB #BA8BE6

Accessibility & contrast

On white

6.77
#7E2CCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7E2CCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2CCA
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2CCA#FFFFFF#000000##FFFFFF
##7E2CCA1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2cca;
/* rgb */ color: rgb(126, 44, 202);
/* oklch */ color: oklch(50.0% 0.225 302.1);
Tailwind
colors: {
  custom: {
    50: '#aa6fdb',
    500: '#7e2cca',
    950: '#000000',
  },
}
SCSS
$custom: #7e2cca;
$custom-light: #aa6fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2cca",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 202
  },
  "hsl": {
    "h": 271.139,
    "s": 64.228,
    "l": 48.235
  },
  "oklch": {
    "l": 0.50017,
    "c": 0.22475,
    "h": 302.1
  },
  "luminance": 0.10501
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E2CCA

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

Preview Lab → · Contrast checker → · Palette generator →

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