#7E42C6#7E42C6

#7E42C6 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.1% C 0.196 H 300.6°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7E42C6
RGBrgb(126, 66, 198)
HSLhsl(267, 54%, 52%)
HSVhsv(267, 67%, 78%)
CMYKcmyk(36.4%, 66.7%, 0%, 22.4%)
CIE-LABlab(41.86, 51.64, -59.25)
CIE-LCHlch(41.86, 78.60, 311.07°)
OKLaboklab(52.14% 0.0997 -0.1687)
OKLCHoklch(52.14% 0.196 300.6)
XYZxyz(20.7430, 12.4091, 54.7175)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42C6 #8AC642
analogous
#4248C6 #7E42C6 #C042C6
triadic
#7E42C6 #C67E42 #42C67E
tetradic
#7E42C6 #C64248 #8AC642 #42C6C0
square
#7E42C6 #C64248 #8AC642 #42C6C0
split-complementary
#7E42C6 #C6C042 #48C642
monochromatic
#43216D #602F9C #7E42C6 #9E71D4 #BEA0E2

Accessibility & contrast

On white

6.03
#7E42C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#7E42C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42C6
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42C6#FFFFFF#000000##FFFFFF
##7E42C61.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#6E607E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e42c6;
/* rgb */ color: rgb(126, 66, 198);
/* oklch */ color: oklch(52.1% 0.196 300.6);
Tailwind
colors: {
  custom: {
    50: '#a97ad8',
    500: '#7e42c6',
    950: '#000000',
  },
}
SCSS
$custom: #7e42c6;
$custom-light: #a97ad8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42c6",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 198
  },
  "hsl": {
    "h": 267.273,
    "s": 53.659,
    "l": 51.765
  },
  "oklch": {
    "l": 0.52139,
    "c": 0.19592,
    "h": 300.6
  },
  "luminance": 0.12409
}

Semantic roles & 50–950 ramp

primary
#7E42C6
secondary
#B5CF95
accent
#DD4B9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E42C6

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

Preview Lab → · Contrast checker → · Palette generator →

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