#7A2AB9#7A2AB9

#7A2AB9 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 48.0% C 0.209 H 304.9°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#7A2AB9
RGBrgb(122, 42, 185)
HSLhsl(274, 63%, 45%)
HSVhsv(274, 77%, 73%)
CMYKcmyk(34.1%, 77.3%, 0%, 27.5%)
CIE-LABlab(36.55, 58.53, -60.29)
CIE-LCHlch(36.55, 84.03, 314.15°)
OKLaboklab(47.95% 0.1198 -0.1717)
OKLCHoklch(47.95% 0.209 304.9)
XYZxyz(17.6090, 9.2964, 46.7562)
Luminance0.0930 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AB9 #69B92A
analogous
#322AB9 #7A2AB9 #B92AB1
triadic
#7A2AB9 #B97A2A #2AB97A
tetradic
#7A2AB9 #B9322A #69B92A #2AB1B9
square
#7A2AB9 #B9322A #69B92A #2AB1B9
split-complementary
#7A2AB9 #B1B92A #2AB932
monochromatic
#381355 #591F87 #7A2AB9 #984AD6 #B57CE1

Accessibility & contrast

On white

7.34
#7A2AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#7A2AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AB9
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AB9#FFFFFF#000000##FFFFFF
##7A2AB91.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BD
Deuteranopia (green-blind)
#0056B6
Tritanopia (blue-blind)
#6E4F71
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2ab9;
/* rgb */ color: rgb(122, 42, 185);
/* oklch */ color: oklch(48.0% 0.209 304.9);
Tailwind
colors: {
  custom: {
    50: '#a66dcf',
    500: '#7a2ab9',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ab9;
$custom-light: #a66dcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ab9",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 185
  },
  "hsl": {
    "h": 273.566,
    "s": 62.996,
    "l": 44.51
  },
  "oklch": {
    "l": 0.47952,
    "c": 0.20938,
    "h": 304.9
  },
  "luminance": 0.09296
}

Semantic roles & 50–950 ramp

primary
#7A2AB9
secondary
#9ACA75
accent
#E6428A
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A2AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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