#7A42C7#7A42C7

#7A42C7 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.196 H 298.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7A42C7
RGBrgb(122, 66, 199)
HSLhsl(265, 54%, 52%)
HSVhsv(265, 67%, 78%)
CMYKcmyk(38.7%, 66.8%, 0%, 22%)
CIE-LABlab(41.47, 51.08, -60.49)
CIE-LCHlch(41.47, 79.18, 310.18°)
OKLaboklab(51.77% 0.094 -0.1725)
OKLCHoklch(51.77% 0.196 298.6)
XYZxyz(20.2805, 12.1573, 55.2999)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42C7 #8FC742
analogous
#424DC7 #7A42C7 #BD42C7
triadic
#7A42C7 #C77A42 #42C77A
tetradic
#7A42C7 #C7424D #8FC742 #42C7BD
square
#7A42C7 #C7424D #8FC742 #42C7BD
split-complementary
#7A42C7 #C7BD42 #4DC742
monochromatic
#41216E #5D2F9D #7A42C7 #9B71D5 #BCA0E3

Accessibility & contrast

On white

6.12
#7A42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7A42C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42C7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42C7#FFFFFF#000000##FFFFFF
##7A42C71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#0060C4
Tritanopia (blue-blind)
#68617F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a42c7;
/* rgb */ color: rgb(122, 66, 199);
/* oklch */ color: oklch(51.8% 0.196 298.6);
Tailwind
colors: {
  custom: {
    50: '#a67ad9',
    500: '#7a42c7',
    950: '#000000',
  },
}
SCSS
$custom: #7a42c7;
$custom-light: #a67ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42c7",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 265.263,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.51774,
    "c": 0.19643,
    "h": 298.6
  },
  "luminance": 0.12158
}

Semantic roles & 50–950 ramp

primary
#7A42C7
secondary
#B7D095
accent
#DE4AA0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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