#7A2CAA#7A2CAA

#7A2CAA is a mid, vivid violet. Relative luminance 0.088; OKLCH L 47.0% C 0.193 H 309.0°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#7A2CAA
RGBrgb(122, 44, 170)
HSLhsl(277, 59%, 42%)
HSVhsv(277, 74%, 67%)
CMYKcmyk(28.2%, 74.1%, 0%, 33.3%)
CIE-LABlab(35.68, 54.37, -52.79)
CIE-LCHlch(35.68, 75.78, 315.84°)
OKLaboklab(46.98% 0.1211 -0.1497)
OKLCHoklch(46.98% 0.193 309)
XYZxyz(16.1809, 8.8415, 38.8766)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2CAA #5CAA2C
analogous
#3B2CAA #7A2CAA #AA2C9B
triadic
#7A2CAA #AA7A2C #2CAA7A
tetradic
#7A2CAA #AA3B2C #5CAA2C #2C9BAA
square
#7A2CAA #AA3B2C #5CAA2C #2C9BAA
split-complementary
#7A2CAA #9BAA2C #2CAA3B
monochromatic
#341349 #571F79 #7A2CAA #9A44CF #B475DB

Accessibility & contrast

On white

7.59
#7A2CAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2CAA
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2CAA#FFFFFF#000000##FFFFFF
##7A2CAA1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AE
Deuteranopia (green-blind)
#0555A7
Tritanopia (blue-blind)
#734969
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2caa;
/* rgb */ color: rgb(122, 44, 170);
/* oklch */ color: oklch(47.0% 0.193 309.0);
Tailwind
colors: {
  custom: {
    50: '#a56dc4',
    500: '#7a2caa',
    950: '#000000',
  },
}
SCSS
$custom: #7a2caa;
$custom-light: #a56dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2caa",
  "rgb": {
    "r": 122,
    "g": 44,
    "b": 170
  },
  "hsl": {
    "h": 277.143,
    "s": 58.879,
    "l": 41.961
  },
  "oklch": {
    "l": 0.46978,
    "c": 0.19255,
    "h": 309
  },
  "luminance": 0.08841
}

Semantic roles & 50–950 ramp

primary
#7A2CAA
secondary
#8FC36F
accent
#E24681
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2CAA

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

Preview Lab → · Contrast checker → · Palette generator →

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