#7A2AAB#7A2AAB

#7A2AAB is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.9% C 0.196 H 308.9°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#7A2AAB
RGBrgb(122, 42, 171)
HSLhsl(277, 61%, 42%)
HSVhsv(277, 75%, 67%)
CMYKcmyk(28.7%, 75.4%, 0%, 32.9%)
CIE-LABlab(35.47, 55.40, -53.73)
CIE-LCHlch(35.47, 77.17, 315.88°)
OKLaboklab(46.85% 0.1228 -0.1524)
OKLCHoklch(46.85% 0.196 308.9)
XYZxyz(16.2032, 8.7341, 39.3524)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2AAB #5BAB2A
analogous
#3A2AAB #7A2AAB #AB2A9C
triadic
#7A2AAB #AB7A2A #2AAB7A
tetradic
#7A2AAB #AB3A2A #5BAB2A #2A9CAB
square
#7A2AAB #AB3A2A #5BAB2A #2A9CAB
split-complementary
#7A2AAB #9CAB2A #2AAB3A
monochromatic
#341249 #571E7A #7A2AAB #9A42D1 #B473DD

Accessibility & contrast

On white

7.65
#7A2AAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#7A2AAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2AAB
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2AAB#FFFFFF#000000##FFFFFF
##7A2AAB1.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#0054A8
Tritanopia (blue-blind)
#724969
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #7a2aab;
/* rgb */ color: rgb(122, 42, 171);
/* oklch */ color: oklch(46.9% 0.196 308.9);
Tailwind
colors: {
  custom: {
    50: '#a56cc5',
    500: '#7a2aab',
    950: '#000000',
  },
}
SCSS
$custom: #7a2aab;
$custom-light: #a56cc5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2aab",
  "rgb": {
    "r": 122,
    "g": 42,
    "b": 171
  },
  "hsl": {
    "h": 277.209,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.46853,
    "c": 0.19576,
    "h": 308.9
  },
  "luminance": 0.08734
}

Semantic roles & 50–950 ramp

primary
#7A2AAB
secondary
#8EC46D
accent
#E44481
background
#FAF6FC
surface
#F4ECF8
border
#CEC7D1
text
#100713
muted
#7F7A82

Preview Lab

Preview with #7A2AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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