#7E42C7#7E42C7

#7E42C7 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.2% C 0.197 H 300.3°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#7E42C7
RGBrgb(126, 66, 199)
HSLhsl(267, 54%, 52%)
HSVhsv(267, 67%, 78%)
CMYKcmyk(36.7%, 66.8%, 0%, 22%)
CIE-LABlab(41.93, 51.89, -59.72)
CIE-LCHlch(41.93, 79.11, 310.99°)
OKLaboklab(52.21% 0.0995 -0.17)
OKLCHoklch(52.21% 0.197 300.3)
XYZxyz(20.8587, 12.4554, 55.3270)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42C7 #8BC742
analogous
#4248C7 #7E42C7 #C142C7
triadic
#7E42C7 #C77E42 #42C77E
tetradic
#7E42C7 #C74248 #8BC742 #42C7C1
square
#7E42C7 #C74248 #8BC742 #42C7C1
split-complementary
#7E42C7 #C7C142 #48C742
monochromatic
#44216E #602F9D #7E42C7 #9E71D5 #BEA0E3

Accessibility & contrast

On white

6.02
#7E42C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7E42C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42C7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42C7#FFFFFF#000000##FFFFFF
##7E42C71.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#0062C4
Tritanopia (blue-blind)
#6E617F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e42c7;
/* rgb */ color: rgb(126, 66, 199);
/* oklch */ color: oklch(52.2% 0.197 300.3);
Tailwind
colors: {
  custom: {
    50: '#a97ad9',
    500: '#7e42c7',
    950: '#000000',
  },
}
SCSS
$custom: #7e42c7;
$custom-light: #a97ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42c7",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 199
  },
  "hsl": {
    "h": 267.068,
    "s": 54.286,
    "l": 51.961
  },
  "oklch": {
    "l": 0.52213,
    "c": 0.19703,
    "h": 300.3
  },
  "luminance": 0.12456
}

Semantic roles & 50–950 ramp

primary
#7E42C7
secondary
#B5D095
accent
#DE4A9B
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E42C7

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

Preview Lab → · Contrast checker → · Palette generator →

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