#7A2ABD#7A2ABD

#7A2ABD is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.3% C 0.213 H 303.9°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#7A2ABD
RGBrgb(122, 42, 189)
HSLhsl(273, 64%, 45%)
HSVhsv(273, 78%, 74%)
CMYKcmyk(35.4%, 77.8%, 0%, 25.9%)
CIE-LABlab(36.87, 59.44, -62.12)
CIE-LCHlch(36.87, 85.98, 313.74°)
OKLaboklab(48.28% 0.1188 -0.1771)
OKLCHoklch(48.28% 0.213 303.9)
XYZxyz(18.0372, 9.4677, 49.0114)
Luminance0.0947 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2ABD #6DBD2A
analogous
#312ABD #7A2ABD #BD2AB6
triadic
#7A2ABD #BD7A2A #2ABD7A
tetradic
#7A2ABD #BD312A #6DBD2A #2AB6BD
square
#7A2ABD #BD312A #6DBD2A #2AB6BD
split-complementary
#7A2ABD #B6BD2A #2ABD31
monochromatic
#391459 #5A1F8B #7A2ABD #984DD7 #B57FE3

Accessibility & contrast

On white

7.26
#7A2ABD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#7A2ABD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2ABD
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2ABD#FFFFFF#000000##FFFFFF
##7A2ABD1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#6D5173
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #7a2abd;
/* rgb */ color: rgb(122, 42, 189);
/* oklch */ color: oklch(48.3% 0.213 303.9);
Tailwind
colors: {
  custom: {
    50: '#a76dd2',
    500: '#7a2abd',
    950: '#000000',
  },
}
SCSS
$custom: #7a2abd;
$custom-light: #a76dd2;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2abd",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 189
  },
  "hsl": {
    "h": 272.653,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.48276,
    "c": 0.21327,
    "h": 303.9
  },
  "luminance": 0.09468
}

Semantic roles & 50–950 ramp

primary
#7A2ABD
secondary
#9ECB78
accent
#E7418D
background
#FAF6FD
surface
#F4ECFA
border
#CEC7D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7A2ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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