#7A42C8#7A42C8

#7A42C8 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.198 H 298.4°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#7A42C8
RGBrgb(122, 66, 200)
HSLhsl(265, 55%, 52%)
HSVhsv(265, 67%, 78%)
CMYKcmyk(39%, 67%, 0%, 21.6%)
CIE-LABlab(41.54, 51.34, -60.95)
CIE-LCHlch(41.54, 79.69, 310.11°)
OKLaboklab(51.85% 0.0939 -0.1738)
OKLCHoklch(51.85% 0.198 298.4)
XYZxyz(20.3969, 12.2038, 55.9133)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A42C8 #90C842
analogous
#424DC8 #7A42C8 #BD42C8
triadic
#7A42C8 #C87A42 #42C87A
tetradic
#7A42C8 #C8424D #90C842 #42C8BD
square
#7A42C8 #C8424D #90C842 #42C8BD
split-complementary
#7A42C8 #C8BD42 #4DC842
monochromatic
#41206F #5D2E9F #7A42C8 #9B71D6 #BDA1E4

Accessibility & contrast

On white

6.10
#7A42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#7A42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7A42C8
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A42C8#FFFFFF#000000##FFFFFF
##7A42C81.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#0061C5
Tritanopia (blue-blind)
#676180
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7a42c8;
/* rgb */ color: rgb(122, 66, 200);
/* oklch */ color: oklch(51.8% 0.198 298.4);
Tailwind
colors: {
  custom: {
    50: '#a67ada',
    500: '#7a42c8',
    950: '#000000',
  },
}
SCSS
$custom: #7a42c8;
$custom-light: #a67ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7a42c8",
  "rgb": {
    "r": 122,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 265.075,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.5185,
    "c": 0.19756,
    "h": 298.4
  },
  "luminance": 0.12204
}

Semantic roles & 50–950 ramp

primary
#7A42C8
secondary
#B8D096
accent
#DE4AA0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7A42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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