#7A2AB6#7A2AB6

#7A2AB6 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.7% C 0.206 H 305.7°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#7A2AB6
RGBrgb(122, 42, 182)
HSLhsl(274, 63%, 44%)
HSVhsv(274, 77%, 71%)
CMYKcmyk(33%, 76.9%, 0%, 28.6%)
CIE-LABlab(36.31, 57.86, -58.90)
CIE-LCHlch(36.31, 82.56, 314.49°)
OKLaboklab(47.71% 0.1205 -0.1676)
OKLCHoklch(47.71% 0.206 305.7)
XYZxyz(17.2956, 9.1710, 45.1059)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AB6 #66B62A
analogous
#342AB6 #7A2AB6 #B62AAC
triadic
#7A2AB6 #B67A2A #2AB67A
tetradic
#7A2AB6 #B6342A #66B62A #2AACB6
square
#7A2AB6 #B6342A #66B62A #2AACB6
split-complementary
#7A2AB6 #ACB62A #2AB634
monochromatic
#371353 #591F84 #7A2AB6 #9948D5 #B57AE0

Accessibility & contrast

On white

7.41
#7A2AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A2AB6
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AB6#FFFFFF#000000##FFFFFF
##7A2AB61.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BA
Deuteranopia (green-blind)
#0056B3
Tritanopia (blue-blind)
#6F4E6F
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #7a2ab6;
/* rgb */ color: rgb(122, 42, 182);
/* oklch */ color: oklch(47.7% 0.206 305.7);
Tailwind
colors: {
  custom: {
    50: '#a66ccd',
    500: '#7a2ab6',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ab6;
$custom-light: #a66ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ab6",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 274.286,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.47711,
    "c": 0.20646,
    "h": 305.7
  },
  "luminance": 0.09171
}

Semantic roles & 50–950 ramp

primary
#7A2AB6
secondary
#98C873
accent
#E64288
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A2AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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