#7A42C1#7A42C1

#7A42C1 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.190 H 300.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7A42C1
RGBrgb(122, 66, 193)
HSLhsl(266, 51%, 51%)
HSVhsv(266, 66%, 76%)
CMYKcmyk(36.8%, 65.8%, 0%, 24.3%)
CIE-LABlab(41.03, 49.56, -57.70)
CIE-LCHlch(41.03, 76.07, 310.66°)
OKLaboklab(51.33% 0.0948 -0.1643)
OKLCHoklch(51.33% 0.19 300)
XYZxyz(19.5975, 11.8841, 51.7031)
Luminance0.1188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42C1 #89C142
analogous
#4249C1 #7A42C1 #BA42C1
triadic
#7A42C1 #C17A42 #42C17A
tetradic
#7A42C1 #C14249 #89C142 #42C1BA
square
#7A42C1 #C14249 #89C142 #42C1BA
split-complementary
#7A42C1 #C1BA42 #49C142
monochromatic
#402267 #5D3195 #7A42C1 #9A70D0 #BB9EDF

Accessibility & contrast

On white

6.22
#7A42C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7A42C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42C1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42C1#FFFFFF#000000##FFFFFF
##7A42C11.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C5
Deuteranopia (green-blind)
#0060BE
Tritanopia (blue-blind)
#6A5F7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7a42c1;
/* rgb */ color: rgb(122, 66, 193);
/* oklch */ color: oklch(51.3% 0.190 300.0);
Tailwind
colors: {
  custom: {
    50: '#a67ad5',
    500: '#7a42c1',
    950: '#000000',
  },
}
SCSS
$custom: #7a42c1;
$custom-light: #a67ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42c1",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 193
  },
  "hsl": {
    "h": 266.457,
    "s": 50.598,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51326,
    "c": 0.18963,
    "h": 300
  },
  "luminance": 0.11884
}

Semantic roles & 50–950 ramp

primary
#7A42C1
secondary
#B3CC93
accent
#DA4E9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7A42C1

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

Preview Lab → · Contrast checker → · Palette generator →

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