#7E2ACA#7E2ACA

#7E2ACA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.8% C 0.227 H 302.3°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#7E2ACA
RGBrgb(126, 42, 202)
HSLhsl(272, 66%, 48%)
HSVhsv(272, 79%, 79%)
CMYKcmyk(37.6%, 79.2%, 0%, 20.8%)
CIE-LABlab(38.47, 63.04, -67.09)
CIE-LCHlch(38.47, 92.06, 313.22°)
OKLaboklab(49.84% 0.121 -0.1916)
OKLCHoklch(49.84% 0.227 302.3)
XYZxyz(20.0902, 10.3558, 56.8061)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2ACA #76CA2A
analogous
#2E2ACA #7E2ACA #CA2AC6
triadic
#7E2ACA #CA7E2A #2ACA7E
tetradic
#7E2ACA #CA2E2A #76CA2A #2AC6CA
square
#7E2ACA #CA2E2A #76CA2A #2AC6CA
split-complementary
#7E2ACA #C6CA2A #2ACA2E
monochromatic
#3F1565 #5E1F97 #7E2ACA #9C55DC #BA88E6

Accessibility & contrast

On white

6.84
#7E2ACA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7E2ACA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E2ACA
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2ACA#FFFFFF#000000##FFFFFF
##7E2ACA1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#6E567B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7e2aca;
/* rgb */ color: rgb(126, 42, 202);
/* oklch */ color: oklch(49.8% 0.227 302.3);
Tailwind
colors: {
  custom: {
    50: '#aa6edb',
    500: '#7e2aca',
    950: '#000000',
  },
}
SCSS
$custom: #7e2aca;
$custom-light: #aa6edb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2aca",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 202
  },
  "hsl": {
    "h": 271.5,
    "s": 65.574,
    "l": 47.843
  },
  "oklch": {
    "l": 0.4984,
    "c": 0.22659,
    "h": 302.3
  },
  "luminance": 0.10356
}

Semantic roles & 50–950 ramp

primary
#7E2ACA
secondary
#A6D080
accent
#E93F90
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7E2ACA

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

Preview Lab → · Contrast checker → · Palette generator →

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