#7A2ECA#7A2ECA

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

Color values

HEX#7A2ECA
RGBrgb(122, 46, 202)
HSLhsl(269, 63%, 49%)
HSVhsv(269, 77%, 79%)
CMYKcmyk(39.6%, 77.2%, 0%, 20.8%)
CIE-LABlab(38.47, 60.91, -67.11)
CIE-LCHlch(38.47, 90.63, 312.23°)
OKLaboklab(49.73% 0.1122 -0.1918)
OKLCHoklch(49.73% 0.222 300.3)
XYZxyz(19.6610, 10.3556, 56.8287)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2ECA #7ECA2E
analogous
#2E30CA #7A2ECA #C82ECA
triadic
#7A2ECA #CA7A2E #2ECA7A
tetradic
#7A2ECA #CA2E30 #7ECA2E #2ECAC8
square
#7A2ECA #CA2E30 #7ECA2E #2ECAC8
split-complementary
#7A2ECA #CAC82E #30CA2E
monochromatic
#3E1766 #5C2398 #7A2ECA #995BDA #B88DE5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7A2ECA#FFFFFF#000000##FFFFFF
##7A2ECA1.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)
#005ACE
Deuteranopia (green-blind)
#0059C7
Tritanopia (blue-blind)
#67587B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7a2eca;
/* rgb */ color: rgb(122, 46, 202);
/* oklch */ color: oklch(49.7% 0.222 300.3);
Tailwind
colors: {
  custom: {
    50: '#a86fdb',
    500: '#7a2eca',
    950: '#000000',
  },
}
SCSS
$custom: #7a2eca;
$custom-light: #a86fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2eca",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 269.231,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.49728,
    "c": 0.22219,
    "h": 300.3
  },
  "luminance": 0.10356
}

Semantic roles & 50–950 ramp

primary
#7A2ECA
secondary
#ABCF84
accent
#E64296
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7A2ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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