#7A2ABA#7A2ABA

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

Color values

HEX#7A2ABA
RGBrgb(122, 42, 186)
HSLhsl(273, 63%, 45%)
HSVhsv(273, 77%, 73%)
CMYKcmyk(34.4%, 77.4%, 0%, 27.1%)
CIE-LABlab(36.63, 58.76, -60.75)
CIE-LCHlch(36.63, 84.52, 314.05°)
OKLaboklab(48.03% 0.1196 -0.1731)
OKLCHoklch(48.03% 0.21 304.6)
XYZxyz(17.7149, 9.3388, 47.3142)
Luminance0.0934 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2ABA #6ABA2A
analogous
#322ABA #7A2ABA #BA2AB2
triadic
#7A2ABA #BA7A2A #2ABA7A
tetradic
#7A2ABA #BA322A #6ABA2A #2AB2BA
square
#7A2ABA #BA322A #6ABA2A #2AB2BA
split-complementary
#7A2ABA #B2BA2A #2ABA32
monochromatic
#391356 #591F88 #7A2ABA #984BD6 #B57DE2

Accessibility & contrast

On white

7.32
#7A2ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#7A2ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2ABA
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2ABA#FFFFFF#000000##FFFFFF
##7A2ABA1.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a2aba;
/* rgb */ color: rgb(122, 42, 186);
/* oklch */ color: oklch(48.0% 0.210 304.6);
Tailwind
colors: {
  custom: {
    50: '#a66dd0',
    500: '#7a2aba',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aba;
$custom-light: #a66dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aba",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 273.333,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.48032,
    "c": 0.21035,
    "h": 304.6
  },
  "luminance": 0.09339
}

Semantic roles & 50–950 ramp

primary
#7A2ABA
secondary
#9BCA76
accent
#E6428B
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A2ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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