#7A42AA#7A42AA

#7A42AA is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.7% C 0.163 H 306.1°. Best body text is #FFFFFF at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#7A42AA
RGBrgb(122, 66, 170)
HSLhsl(272, 44%, 46%)
HSVhsv(272, 61%, 67%)
CMYKcmyk(28.2%, 61.2%, 0%, 33.3%)
CIE-LABlab(39.47, 43.86, -46.67)
CIE-LCHlch(39.47, 64.04, 313.23°)
OKLaboklab(49.7% 0.0963 -0.1318)
OKLCHoklch(49.7% 0.163 306.1)
XYZxyz(17.2284, 10.9364, 39.2257)
Luminance0.1094 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42AA #72AA42
analogous
#4642AA #7A42AA #AA42A6
triadic
#7A42AA #AA7A42 #42AA7A
tetradic
#7A42AA #AA4642 #72AA42 #42A6AA
square
#7A42AA #AA4642 #72AA42 #42A6AA
split-complementary
#7A42AA #A6AA42 #42AA46
monochromatic
#3B2052 #5A317E #7A42AA #9866C3 #B692D5

Accessibility & contrast

On white

6.59
#7A42AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#7A42AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42AA
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42AA#FFFFFF#000000##FFFFFF
##7A42AA1.006.593.196.59
#FFFFFF6.591.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5BAD
Deuteranopia (green-blind)
#2D5DA8
Tritanopia (blue-blind)
#725770
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #7a42aa;
/* rgb */ color: rgb(122, 66, 170);
/* oklch */ color: oklch(49.7% 0.163 306.1);
Tailwind
colors: {
  custom: {
    50: '#a479c4',
    500: '#7a42aa',
    950: '#000000',
  },
}
SCSS
$custom: #7a42aa;
$custom-light: #a479c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42aa",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 272.308,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49703,
    "c": 0.16326,
    "h": 306.1
  },
  "luminance": 0.10936
}

Semantic roles & 50–950 ramp

primary
#7A42AA
secondary
#A2C088
accent
#D4548F
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#0F0913
muted
#7F7B82

Preview Lab

Preview with #7A42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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