#7A42C4#7A42C4

#7A42C4 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.193 H 299.3°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7A42C4
RGBrgb(122, 66, 196)
HSLhsl(266, 52%, 51%)
HSVhsv(266, 66%, 77%)
CMYKcmyk(37.8%, 66.3%, 0%, 23.1%)
CIE-LABlab(41.25, 50.32, -59.10)
CIE-LCHlch(41.25, 77.62, 310.41°)
OKLaboklab(51.55% 0.0944 -0.1684)
OKLCHoklch(51.55% 0.193 299.3)
XYZxyz(19.9356, 12.0193, 53.4835)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42C4 #8CC442
analogous
#424BC4 #7A42C4 #BB42C4
triadic
#7A42C4 #C47A42 #42C47A
tetradic
#7A42C4 #C4424B #8CC442 #42C4BB
square
#7A42C4 #C4424B #8CC442 #42C4BB
split-complementary
#7A42C4 #C4BB42 #4BC442
monochromatic
#41216A #5D3099 #7A42C4 #9B71D3 #BC9FE1

Accessibility & contrast

On white

6.17
#7A42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7A42C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42C4
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42C4#FFFFFF#000000##FFFFFF
##7A42C41.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#69607D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a42c4;
/* rgb */ color: rgb(122, 66, 196);
/* oklch */ color: oklch(51.5% 0.193 299.3);
Tailwind
colors: {
  custom: {
    50: '#a67ad7',
    500: '#7a42c4',
    950: '#000000',
  },
}
SCSS
$custom: #7a42c4;
$custom-light: #a67ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42c4",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 265.846,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51549,
    "c": 0.19304,
    "h": 299.3
  },
  "luminance": 0.1202
}

Semantic roles & 50–950 ramp

primary
#7A42C4
secondary
#B5CE94
accent
#DC4C9E
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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