#7A42CC#7A42CC

#7A42CC is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.202 H 297.5°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#7A42CC
RGBrgb(122, 66, 204)
HSLhsl(264, 58%, 53%)
HSVhsv(264, 68%, 80%)
CMYKcmyk(40.2%, 67.6%, 0%, 20%)
CIE-LABlab(41.83, 52.36, -62.79)
CIE-LCHlch(41.83, 81.76, 309.83°)
OKLaboklab(52.16% 0.0934 -0.1792)
OKLCHoklch(52.16% 0.202 297.5)
XYZxyz(20.8705, 12.3933, 58.4076)
Luminance0.1239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42CC #94CC42
analogous
#424FCC #7A42CC #BF42CC
triadic
#7A42CC #CC7A42 #42CC7A
tetradic
#7A42CC #CC424F #94CC42 #42CCBF
square
#7A42CC #CC424F #94CC42 #42CCBF
split-complementary
#7A42CC #CCBF42 #4FCC42
monochromatic
#421F74 #5D2CA4 #7A42CC #9C72D9 #BEA2E6

Accessibility & contrast

On white

6.04
#7A42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7A42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42CC
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42CC#FFFFFF#000000##FFFFFF
##7A42CC1.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#666382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a42cc;
/* rgb */ color: rgb(122, 66, 204);
/* oklch */ color: oklch(52.2% 0.202 297.5);
Tailwind
colors: {
  custom: {
    50: '#a77adc',
    500: '#7a42cc',
    950: '#000000',
  },
}
SCSS
$custom: #7a42cc;
$custom-light: #a77adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42cc",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 264.348,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52156,
    "c": 0.20208,
    "h": 297.5
  },
  "luminance": 0.12394
}

Semantic roles & 50–950 ramp

primary
#7A42CC
secondary
#BBD397
accent
#E147A2
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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