#7A42A2#7A42A2

#7A42A2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.2% C 0.154 H 308.7°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#7A42A2
RGBrgb(122, 66, 162)
HSLhsl(275, 42%, 45%)
HSVhsv(275, 59%, 64%)
CMYKcmyk(24.7%, 59.3%, 0%, 36.5%)
CIE-LABlab(38.97, 41.94, -42.69)
CIE-LCHlch(38.97, 59.85, 314.49°)
OKLaboklab(49.18% 0.0963 -0.1202)
OKLCHoklch(49.18% 0.154 308.7)
XYZxyz(16.4946, 10.6429, 35.3608)
Luminance0.1064 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42A2 #6AA242
analogous
#4A42A2 #7A42A2 #A2429A
triadic
#7A42A2 #A27A42 #42A27A
tetradic
#7A42A2 #A24A42 #6AA242 #429AA2
square
#7A42A2 #A24A42 #6AA242 #429AA2
split-complementary
#7A42A2 #9AA242 #42A24A
monochromatic
#391F4B #593077 #7A42A2 #9862BF #B58ED1

Accessibility & contrast

On white

6.71
#7A42A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#7A42A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42A2
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42A2#FFFFFF#000000##FFFFFF
##7A42A21.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E59A5
Deuteranopia (green-blind)
#355DA0
Tritanopia (blue-blind)
#74546B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #7a42a2;
/* rgb */ color: rgb(122, 66, 162);
/* oklch */ color: oklch(49.2% 0.154 308.7);
Tailwind
colors: {
  custom: {
    50: '#a379be',
    500: '#7a42a2',
    950: '#000000',
  },
}
SCSS
$custom: #7a42a2;
$custom-light: #a379be;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42a2",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 275,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.49177,
    "c": 0.15403,
    "h": 308.7
  },
  "luminance": 0.10643
}

Semantic roles & 50–950 ramp

primary
#7A42A2
secondary
#9BBC84
accent
#D2568A
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#0F0912
muted
#7F7B81

Preview Lab

Preview with #7A42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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