#7A2EC9#7A2EC9

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

Color values

HEX#7A2EC9
RGBrgb(122, 46, 201)
HSLhsl(269, 63%, 48%)
HSVhsv(269, 77%, 79%)
CMYKcmyk(39.3%, 77.1%, 0%, 21.2%)
CIE-LABlab(38.39, 60.67, -66.66)
CIE-LCHlch(38.39, 90.14, 312.31°)
OKLaboklab(49.64% 0.1125 -0.1905)
OKLCHoklch(49.64% 0.221 300.6)
XYZxyz(19.5430, 10.3084, 56.2071)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EC9 #7DC92E
analogous
#2E30C9 #7A2EC9 #C72EC9
triadic
#7A2EC9 #C97A2E #2EC97A
tetradic
#7A2EC9 #C92E30 #7DC92E #2EC9C7
square
#7A2EC9 #C92E30 #7DC92E #2EC9C7
split-complementary
#7A2EC9 #C9C72E #30C92E
monochromatic
#3E1765 #5C2397 #7A2EC9 #995BD9 #B88DE5

Accessibility & contrast

On white

6.86
#7A2EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7A2EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A2EC9
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EC9#FFFFFF#000000##FFFFFF
##7A2EC91.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACD
Deuteranopia (green-blind)
#0059C6
Tritanopia (blue-blind)
#68577B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7a2ec9;
/* rgb */ color: rgb(122, 46, 201);
/* oklch */ color: oklch(49.6% 0.221 300.6);
Tailwind
colors: {
  custom: {
    50: '#a76fda',
    500: '#7a2ec9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ec9;
$custom-light: #a76fda;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ec9",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 201
  },
  "hsl": {
    "h": 269.419,
    "s": 62.753,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49644,
    "c": 0.2212,
    "h": 300.6
  },
  "luminance": 0.10309
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A2EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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