#7A2EA3#7A2EA3

#7A2EA3 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.7% C 0.183 H 311.0°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#7A2EA3
RGBrgb(122, 46, 163)
HSLhsl(279, 56%, 41%)
HSVhsv(279, 72%, 64%)
CMYKcmyk(25.2%, 71.8%, 0%, 36.1%)
CIE-LABlab(35.47, 51.97, -48.92)
CIE-LCHlch(35.47, 71.37, 316.73°)
OKLaboklab(46.67% 0.1201 -0.1383)
OKLCHoklch(46.67% 0.183 311)
XYZxyz(15.6126, 8.7363, 35.5070)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2EA3 #57A32E
analogous
#3F2EA3 #7A2EA3 #A32E91
triadic
#7A2EA3 #A37A2E #2EA37A
tetradic
#7A2EA3 #A33F2E #57A32E #2E91A3
square
#7A2EA3 #A33F2E #57A32E #2E91A3
split-complementary
#7A2EA3 #91A32E #2EA33F
monochromatic
#331344 #562173 #7A2EA3 #9B44CA #B574D8

Accessibility & contrast

On white

7.64
#7A2EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7A2EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2EA3
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2EA3#FFFFFF#000000##FFFFFF
##7A2EA31.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050A6
Deuteranopia (green-blind)
#1C55A0
Tritanopia (blue-blind)
#754865
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2ea3;
/* rgb */ color: rgb(122, 46, 163);
/* oklch */ color: oklch(46.7% 0.183 311.0);
Tailwind
colors: {
  custom: {
    50: '#a46ebf',
    500: '#7a2ea3',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ea3;
$custom-light: #a46ebf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ea3",
  "rgb": {
    "r": 122,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 278.974,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.46672,
    "c": 0.18323,
    "h": 311
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

primary
#7A2EA3
secondary
#8ABF6D
accent
#DF497D
background
#FAF6FB
surface
#F4ECF7
border
#CEC7D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7A2EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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