#7A42D5#7A42D5

#7A42D5 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.212 H 295.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7A42D5
RGBrgb(122, 66, 213)
HSLhsl(263, 64%, 55%)
HSVhsv(263, 69%, 84%)
CMYKcmyk(42.7%, 69%, 0%, 16.5%)
CIE-LABlab(42.52, 54.68, -66.87)
CIE-LCHlch(42.52, 86.38, 309.27°)
OKLaboklab(52.86% 0.092 -0.1912)
OKLCHoklch(52.86% 0.212 295.7)
XYZxyz(21.9813, 12.8376, 64.2577)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42D5 #9DD542
analogous
#4254D5 #7A42D5 #C342D5
triadic
#7A42D5 #D57A42 #42D57A
tetradic
#7A42D5 #D54254 #9DD542 #42D5C3
square
#7A42D5 #D54254 #9DD542 #42D5C3
split-complementary
#7A42D5 #D5C342 #54D542
monochromatic
#421C80 #5C28B2 #7A42D5 #9D74E0 #C0A6EB

Accessibility & contrast

On white

5.89
#7A42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7A42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42D5
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42D5#FFFFFF#000000##FFFFFF
##7A42D51.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#0062D2
Tritanopia (blue-blind)
#626687
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7a42d5;
/* rgb */ color: rgb(122, 66, 213);
/* oklch */ color: oklch(52.9% 0.212 295.7);
Tailwind
colors: {
  custom: {
    50: '#a87be3',
    500: '#7a42d5',
    950: '#000000',
  },
}
SCSS
$custom: #7a42d5;
$custom-light: #a87be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42d5",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 262.857,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.52857,
    "c": 0.21216,
    "h": 295.7
  },
  "luminance": 0.12838
}

Semantic roles & 50–950 ramp

primary
#7A42D5
secondary
#C1D89A
accent
#E741A8
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #7A42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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