#7A42C2#7A42C2

#7A42C2 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.191 H 299.7°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7A42C2
RGBrgb(122, 66, 194)
HSLhsl(266, 51%, 51%)
HSVhsv(266, 66%, 76%)
CMYKcmyk(37.1%, 66%, 0%, 23.9%)
CIE-LABlab(41.10, 49.82, -58.17)
CIE-LCHlch(41.10, 76.59, 310.58°)
OKLaboklab(51.4% 0.0946 -0.1656)
OKLCHoklch(51.4% 0.191 299.7)
XYZxyz(19.7095, 11.9289, 52.2926)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42C2 #8AC242
analogous
#424AC2 #7A42C2 #BA42C2
triadic
#7A42C2 #C27A42 #42C27A
tetradic
#7A42C2 #C2424A #8AC242 #42C2BA
square
#7A42C2 #C2424A #8AC242 #42C2BA
split-complementary
#7A42C2 #C2BA42 #4AC242
monochromatic
#402268 #5D3196 #7A42C2 #9B70D1 #BB9FE0

Accessibility & contrast

On white

6.20
#7A42C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7A42C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42C2
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42C2#FFFFFF#000000##FFFFFF
##7A42C21.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#0060BF
Tritanopia (blue-blind)
#6A5F7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a42c2;
/* rgb */ color: rgb(122, 66, 194);
/* oklch */ color: oklch(51.4% 0.191 299.7);
Tailwind
colors: {
  custom: {
    50: '#a67ad5',
    500: '#7a42c2',
    950: '#000000',
  },
}
SCSS
$custom: #7a42c2;
$custom-light: #a67ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42c2",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 194
  },
  "hsl": {
    "h": 266.25,
    "s": 51.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.514,
    "c": 0.19077,
    "h": 299.7
  },
  "luminance": 0.11929
}

Semantic roles & 50–950 ramp

primary
#7A42C2
secondary
#B3CC94
accent
#DB4D9D
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A42C2

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

Preview Lab → · Contrast checker → · Palette generator →

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