#7A2AAD#7A2AAD

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

Color values

HEX#7A2AAD
RGBrgb(122, 42, 173)
HSLhsl(277, 61%, 42%)
HSVhsv(277, 76%, 68%)
CMYKcmyk(29.5%, 75.7%, 0%, 32.2%)
CIE-LABlab(35.62, 55.84, -54.68)
CIE-LCHlch(35.62, 78.15, 315.60°)
OKLaboklab(47.01% 0.1224 -0.1552)
OKLCHoklch(47.01% 0.198 308.3)
XYZxyz(16.3953, 8.8109, 40.3640)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AAD #5DAD2A
analogous
#382AAD #7A2AAD #AD2A9F
triadic
#7A2AAD #AD7A2A #2AAD7A
tetradic
#7A2AAD #AD382A #5DAD2A #2A9FAD
square
#7A2AAD #AD382A #5DAD2A #2A9FAD
split-complementary
#7A2AAD #9FAD2A #2AAD38
monochromatic
#35124B #571E7C #7A2AAD #9A43D1 #B474DD

Accessibility & contrast

On white

7.60
#7A2AAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#7A2AAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AAD
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AAD#FFFFFF#000000##FFFFFF
##7A2AAD1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#0055AA
Tritanopia (blue-blind)
#724A6A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #7a2aad;
/* rgb */ color: rgb(122, 42, 173);
/* oklch */ color: oklch(47.0% 0.198 308.3);
Tailwind
colors: {
  custom: {
    50: '#a56cc6',
    500: '#7a2aad',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aad;
$custom-light: #a56cc6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aad",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 173
  },
  "hsl": {
    "h": 276.641,
    "s": 60.93,
    "l": 42.157
  },
  "oklch": {
    "l": 0.47006,
    "c": 0.19771,
    "h": 308.3
  },
  "luminance": 0.08811
}

Semantic roles & 50–950 ramp

primary
#7A2AAD
secondary
#90C56E
accent
#E44482
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2AAD

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

Preview Lab → · Contrast checker → · Palette generator →

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