#7A42CE#7A42CE

#7A42CE is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.3% C 0.204 H 297.1°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7A42CE
RGBrgb(122, 66, 206)
HSLhsl(264, 59%, 53%)
HSVhsv(264, 68%, 81%)
CMYKcmyk(40.8%, 68%, 0%, 19.2%)
CIE-LABlab(41.98, 52.87, -63.70)
CIE-LCHlch(41.98, 82.79, 309.69°)
OKLaboklab(52.31% 0.0931 -0.1819)
OKLCHoklch(52.31% 0.204 297.1)
XYZxyz(21.1119, 12.4899, 59.6790)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42CE #96CE42
analogous
#4250CE #7A42CE #C042CE
triadic
#7A42CE #CE7A42 #42CE7A
tetradic
#7A42CE #CE4250 #96CE42 #42CEC0
square
#7A42CE #CE4250 #96CE42 #42CEC0
split-complementary
#7A42CE #CEC042 #50CE42
monochromatic
#421F77 #5D2BA7 #7A42CE #9C73DB #BEA3E7

Accessibility & contrast

On white

6.00
#7A42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7A42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42CE
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42CE#FFFFFF#000000##FFFFFF
##7A42CE1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D2
Deuteranopia (green-blind)
#0061CB
Tritanopia (blue-blind)
#656483
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a42ce;
/* rgb */ color: rgb(122, 66, 206);
/* oklch */ color: oklch(52.3% 0.204 297.1);
Tailwind
colors: {
  custom: {
    50: '#a77ade',
    500: '#7a42ce',
    950: '#000000',
  },
}
SCSS
$custom: #7a42ce;
$custom-light: #a77ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42ce",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 264,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5231,
    "c": 0.20432,
    "h": 297.1
  },
  "luminance": 0.1249
}

Semantic roles & 50–950 ramp

primary
#7A42CE
secondary
#BCD498
accent
#E246A4
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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