#7A42CA#7A42CA

#7A42CA is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.200 H 297.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#7A42CA
RGBrgb(122, 66, 202)
HSLhsl(265, 56%, 53%)
HSVhsv(265, 67%, 79%)
CMYKcmyk(39.6%, 67.3%, 0%, 20.8%)
CIE-LABlab(41.69, 51.85, -61.87)
CIE-LCHlch(41.69, 80.73, 309.96°)
OKLaboklab(52% 0.0936 -0.1765)
OKLCHoklch(52% 0.2 297.9)
XYZxyz(20.6322, 12.2980, 57.1524)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42CA #92CA42
analogous
#424ECA #7A42CA #BE42CA
triadic
#7A42CA #CA7A42 #42CA7A
tetradic
#7A42CA #CA424E #92CA42 #42CABE
square
#7A42CA #CA424E #92CA42 #42CABE
split-complementary
#7A42CA #CABE42 #4ECA42
monochromatic
#422072 #5D2DA2 #7A42CA #9C72D7 #BDA2E5

Accessibility & contrast

On white

6.07
#7A42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7A42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42CA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42CA#FFFFFF#000000##FFFFFF
##7A42CA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0061C7
Tritanopia (blue-blind)
#676281
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a42ca;
/* rgb */ color: rgb(122, 66, 202);
/* oklch */ color: oklch(52.0% 0.200 297.9);
Tailwind
colors: {
  custom: {
    50: '#a67adb',
    500: '#7a42ca',
    950: '#000000',
  },
}
SCSS
$custom: #7a42ca;
$custom-light: #a67adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42ca",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 264.706,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52002,
    "c": 0.19983,
    "h": 297.9
  },
  "luminance": 0.12298
}

Semantic roles & 50–950 ramp

primary
#7A42CA
secondary
#B9D196
accent
#DF48A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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