#7A2AB5#7A2AB5

#7A2AB5 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.6% C 0.205 H 306.0°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#7A2AB5
RGBrgb(122, 42, 181)
HSLhsl(275, 62%, 44%)
HSVhsv(275, 77%, 71%)
CMYKcmyk(32.6%, 76.8%, 0%, 29%)
CIE-LABlab(36.23, 57.63, -58.43)
CIE-LCHlch(36.23, 82.07, 314.60°)
OKLaboklab(47.63% 0.1207 -0.1663)
OKLCHoklch(47.63% 0.205 306)
XYZxyz(17.1926, 9.1299, 44.5636)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AB5 #65B52A
analogous
#342AB5 #7A2AB5 #B52AAA
triadic
#7A2AB5 #B57A2A #2AB57A
tetradic
#7A2AB5 #B5342A #65B52A #2AAAB5
square
#7A2AB5 #B5342A #65B52A #2AAAB5
split-complementary
#7A2AB5 #AAB52A #2AB534
monochromatic
#371352 #591E83 #7A2AB5 #9948D4 #B479E0

Accessibility & contrast

On white

7.43
#7A2AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#7A2AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AB5
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AB5#FFFFFF#000000##FFFFFF
##7A2AB51.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053B9
Deuteranopia (green-blind)
#0056B2
Tritanopia (blue-blind)
#6F4D6E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2ab5;
/* rgb */ color: rgb(122, 42, 181);
/* oklch */ color: oklch(47.6% 0.205 306.0);
Tailwind
colors: {
  custom: {
    50: '#a66ccc',
    500: '#7a2ab5',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ab5;
$custom-light: #a66ccc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ab5",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 181
  },
  "hsl": {
    "h": 274.532,
    "s": 62.332,
    "l": 43.725
  },
  "oklch": {
    "l": 0.47632,
    "c": 0.20548,
    "h": 306
  },
  "luminance": 0.0913
}

Semantic roles & 50–950 ramp

primary
#7A2AB5
secondary
#97C873
accent
#E54288
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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