#7A42CD#7A42CD

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

Color values

HEX#7A42CD
RGBrgb(122, 66, 205)
HSLhsl(264, 58%, 53%)
HSVhsv(264, 68%, 80%)
CMYKcmyk(40.5%, 67.8%, 0%, 19.6%)
CIE-LABlab(41.91, 52.62, -63.25)
CIE-LCHlch(41.91, 82.27, 309.76°)
OKLaboklab(52.23% 0.0932 -0.1806)
OKLCHoklch(52.23% 0.203 297.3)
XYZxyz(20.9909, 12.4414, 59.0413)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42CD #95CD42
analogous
#424FCD #7A42CD #C042CD
triadic
#7A42CD #CD7A42 #42CD7A
tetradic
#7A42CD #CD424F #95CD42 #42CDC0
square
#7A42CD #CD424F #95CD42 #42CDC0
split-complementary
#7A42CD #CDC042 #4FCD42
monochromatic
#421F76 #5D2CA6 #7A42CD #9C72DA #BEA3E7

Accessibility & contrast

On white

6.02
#7A42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7A42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42CD
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42CD#FFFFFF#000000##FFFFFF
##7A42CD1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#656382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a42cd;
/* rgb */ color: rgb(122, 66, 205);
/* oklch */ color: oklch(52.2% 0.203 297.3);
Tailwind
colors: {
  custom: {
    50: '#a77add',
    500: '#7a42cd',
    950: '#000000',
  },
}
SCSS
$custom: #7a42cd;
$custom-light: #a77add;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42cd",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 264.173,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52232,
    "c": 0.2032,
    "h": 297.3
  },
  "luminance": 0.12442
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7A42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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