#7A42C3#7A42C3

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

Color values

HEX#7A42C3
RGBrgb(122, 66, 195)
HSLhsl(266, 52%, 51%)
HSVhsv(266, 66%, 76%)
CMYKcmyk(37.4%, 66.2%, 0%, 23.5%)
CIE-LABlab(41.17, 50.07, -58.64)
CIE-LCHlch(41.17, 77.10, 310.49°)
OKLaboklab(51.47% 0.0945 -0.167)
OKLCHoklch(51.47% 0.192 299.5)
XYZxyz(19.8221, 11.9739, 52.8861)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42C3 #8BC342
analogous
#424AC3 #7A42C3 #BB42C3
triadic
#7A42C3 #C37A42 #42C37A
tetradic
#7A42C3 #C3424A #8BC342 #42C3BB
square
#7A42C3 #C3424A #8BC342 #42C3BB
split-complementary
#7A42C3 #C3BB42 #4AC342
monochromatic
#412169 #5D3098 #7A42C3 #9B70D2 #BB9FE0

Accessibility & contrast

On white

6.19
#7A42C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7A42C3
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42C3#FFFFFF#000000##FFFFFF
##7A42C31.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a42c3;
/* rgb */ color: rgb(122, 66, 195);
/* oklch */ color: oklch(51.5% 0.192 299.5);
Tailwind
colors: {
  custom: {
    50: '#a67ad6',
    500: '#7a42c3',
    950: '#000000',
  },
}
SCSS
$custom: #7a42c3;
$custom-light: #a67ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42c3",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 266.047,
    "s": 51.807,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51474,
    "c": 0.1919,
    "h": 299.5
  },
  "luminance": 0.11974
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A42C3

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

Preview Lab → · Contrast checker → · Palette generator →

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