#7A2AB7#7A2AB7

#7A2AB7 is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.8% C 0.207 H 305.4°. Best body text is #FFFFFF at 7.39:1 contrast (WCAG AA passes).

Color values

HEX#7A2AB7
RGBrgb(122, 42, 183)
HSLhsl(274, 63%, 44%)
HSVhsv(274, 77%, 72%)
CMYKcmyk(33.3%, 77%, 0%, 28.2%)
CIE-LABlab(36.39, 58.08, -59.36)
CIE-LCHlch(36.39, 83.05, 314.37°)
OKLaboklab(47.79% 0.1203 -0.169)
OKLCHoklch(47.79% 0.207 305.4)
XYZxyz(17.3993, 9.2125, 45.6521)
Luminance0.0921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AB7 #67B72A
analogous
#342AB7 #7A2AB7 #B72AAE
triadic
#7A2AB7 #B77A2A #2AB77A
tetradic
#7A2AB7 #B7342A #67B72A #2AAEB7
square
#7A2AB7 #B7342A #67B72A #2AAEB7
split-complementary
#7A2AB7 #AEB72A #2AB734
monochromatic
#381353 #591F85 #7A2AB7 #9949D5 #B57BE1

Accessibility & contrast

On white

7.39
#7A2AB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#7A2AB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AB7
7.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AB7#FFFFFF#000000##FFFFFF
##7A2AB71.007.392.847.39
#FFFFFF7.391.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053BB
Deuteranopia (green-blind)
#0056B4
Tritanopia (blue-blind)
#6F4E70
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #7a2ab7;
/* rgb */ color: rgb(122, 42, 183);
/* oklch */ color: oklch(47.8% 0.207 305.4);
Tailwind
colors: {
  custom: {
    50: '#a66dce',
    500: '#7a2ab7',
    950: '#000000',
  },
}
SCSS
$custom: #7a2ab7;
$custom-light: #a66dce;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2ab7",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 183
  },
  "hsl": {
    "h": 274.043,
    "s": 62.667,
    "l": 44.118
  },
  "oklch": {
    "l": 0.47791,
    "c": 0.20743,
    "h": 305.4
  },
  "luminance": 0.09212
}

Semantic roles & 50–950 ramp

primary
#7A2AB7
secondary
#99C974
accent
#E64289
background
#FAF6FC
surface
#F4ECF9
border
#CEC7D2
text
#100714
muted
#7F7A82

Preview Lab

Preview with #7A2AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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