#7A2EC8#7A2EC8

#7A2EC8 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.220 H 300.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#7A2EC8
RGBrgb(122, 46, 200)
HSLhsl(270, 63%, 48%)
HSVhsv(270, 77%, 78%)
CMYKcmyk(39%, 77%, 0%, 21.6%)
CIE-LABlab(38.31, 60.44, -66.21)
CIE-LCHlch(38.31, 89.65, 312.39°)
OKLaboklab(49.56% 0.1127 -0.1892)
OKLCHoklch(49.56% 0.22 300.8)
XYZxyz(19.4258, 10.2615, 55.5896)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EC8 #7CC82E
analogous
#2E2FC8 #7A2EC8 #C72EC8
triadic
#7A2EC8 #C87A2E #2EC87A
tetradic
#7A2EC8 #C82E2F #7CC82E #2EC8C7
square
#7A2EC8 #C82E2F #7CC82E #2EC8C7
split-complementary
#7A2EC8 #C8C72E #2FC82E
monochromatic
#3D1764 #5C2396 #7A2EC8 #995AD9 #B88CE5

Accessibility & contrast

On white

6.88
#7A2EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#7A2EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2EC8
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EC8#FFFFFF#000000##FFFFFF
##7A2EC81.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACC
Deuteranopia (green-blind)
#0059C5
Tritanopia (blue-blind)
#68577A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a2ec8;
/* rgb */ color: rgb(122, 46, 200);
/* oklch */ color: oklch(49.6% 0.220 300.8);
Tailwind
colors: {
  custom: {
    50: '#a76fda',
    500: '#7a2ec8',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ec8;
$custom-light: #a76fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ec8",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 200
  },
  "hsl": {
    "h": 269.61,
    "s": 62.602,
    "l": 48.235
  },
  "oklch": {
    "l": 0.49561,
    "c": 0.2202,
    "h": 300.8
  },
  "luminance": 0.10262
}

Semantic roles & 50–950 ramp

primary
#7A2EC8
secondary
#A9CF83
accent
#E64295
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100815
muted
#7F7B83

Preview Lab

Preview with #7A2EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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