#7A2EA6#7A2EA6

#7A2EA6 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.9% C 0.186 H 310.0°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#7A2EA6
RGBrgb(122, 46, 166)
HSLhsl(278, 57%, 42%)
HSVhsv(278, 72%, 65%)
CMYKcmyk(26.5%, 72.3%, 0%, 34.9%)
CIE-LABlab(35.68, 52.63, -50.38)
CIE-LCHlch(35.68, 72.86, 316.25°)
OKLaboklab(46.89% 0.1197 -0.1426)
OKLCHoklch(46.89% 0.186 310)
XYZxyz(15.8846, 8.8451, 36.9395)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EA6 #5AA62E
analogous
#3E2EA6 #7A2EA6 #A62E96
triadic
#7A2EA6 #A67A2E #2EA67A
tetradic
#7A2EA6 #A63E2E #5AA62E #2E96A6
square
#7A2EA6 #A63E2E #5AA62E #2E96A6
split-complementary
#7A2EA6 #96A62E #2EA63E
monochromatic
#341346 #572176 #7A2EA6 #9A46CC #B476D9

Accessibility & contrast

On white

7.58
#7A2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#7A2EA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EA6
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EA6#FFFFFF#000000##FFFFFF
##7A2EA61.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A9
Deuteranopia (green-blind)
#1655A3
Tritanopia (blue-blind)
#744967
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2ea6;
/* rgb */ color: rgb(122, 46, 166);
/* oklch */ color: oklch(46.9% 0.186 310.0);
Tailwind
colors: {
  custom: {
    50: '#a56ec1',
    500: '#7a2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ea6;
$custom-light: #a56ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ea6",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 278,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.46891,
    "c": 0.18622,
    "h": 310
  },
  "luminance": 0.08845
}

Semantic roles & 50–950 ramp

primary
#7A2EA6
secondary
#8DC16F
accent
#E04880
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100812
muted
#7F7B81

Preview Lab

Preview with #7A2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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