#7A42D0#7A42D0

#7A42D0 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.207 H 296.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7A42D0
RGBrgb(122, 66, 208)
HSLhsl(264, 60%, 54%)
HSVhsv(264, 68%, 82%)
CMYKcmyk(41.3%, 68.3%, 0%, 18.4%)
CIE-LABlab(42.14, 53.39, -64.61)
CIE-LCHlch(42.14, 83.81, 309.57°)
OKLaboklab(52.47% 0.0928 -0.1846)
OKLCHoklch(52.47% 0.207 296.7)
XYZxyz(21.3564, 12.5877, 60.9667)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42D0 #98D042
analogous
#4251D0 #7A42D0 #C142D0
triadic
#7A42D0 #D07A42 #42D07A
tetradic
#7A42D0 #D04251 #98D042 #42D0C1
square
#7A42D0 #D04251 #98D042 #42D0C1
split-complementary
#7A42D0 #D0C142 #51D042
monochromatic
#421E79 #5D2AAA #7A42D0 #9C73DC #BFA4E8

Accessibility & contrast

On white

5.97
#7A42D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7A42D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42D0
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42D0#FFFFFF#000000##FFFFFF
##7A42D01.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D4
Deuteranopia (green-blind)
#0062CD
Tritanopia (blue-blind)
#646484
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7a42d0;
/* rgb */ color: rgb(122, 66, 208);
/* oklch */ color: oklch(52.5% 0.207 296.7);
Tailwind
colors: {
  custom: {
    50: '#a77adf',
    500: '#7a42d0',
    950: '#000000',
  },
}
SCSS
$custom: #7a42d0;
$custom-light: #a77adf;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42d0",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 263.662,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52465,
    "c": 0.20657,
    "h": 296.7
  },
  "luminance": 0.12588
}

Semantic roles & 50–950 ramp

primary
#7A42D0
secondary
#BDD599
accent
#E344A5
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42D0

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

Preview Lab → · Contrast checker → · Palette generator →

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