#7E42D8#7E42D8

#7E42D8 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.5% C 0.216 H 296.7°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#7E42D8
RGBrgb(126, 66, 216)
HSLhsl(264, 66%, 55%)
HSVhsv(264, 69%, 85%)
CMYKcmyk(41.7%, 69.4%, 0%, 15.3%)
CIE-LABlab(43.20, 56.17, -67.46)
CIE-LCHlch(43.20, 87.78, 309.78°)
OKLaboklab(53.52% 0.097 -0.1928)
OKLCHoklch(53.52% 0.216 296.7)
XYZxyz(22.9438, 13.2895, 66.3087)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42D8 #9CD842
analogous
#4251D8 #7E42D8 #C942D8
triadic
#7E42D8 #D87E42 #42D87E
tetradic
#7E42D8 #D84251 #9CD842 #42D8C9
square
#7E42D8 #D84251 #9CD842 #42D8C9
split-complementary
#7E42D8 #D8C942 #51D842
monochromatic
#451B84 #6026B7 #7E42D8 #A175E2 #C3A7ED

Accessibility & contrast

On white

5.74
#7E42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#7E42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42D8
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42D8#FFFFFF#000000##FFFFFF
##7E42D81.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DC
Deuteranopia (green-blind)
#0064D5
Tritanopia (blue-blind)
#676788
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e42d8;
/* rgb */ color: rgb(126, 66, 216);
/* oklch */ color: oklch(53.5% 0.216 296.7);
Tailwind
colors: {
  custom: {
    50: '#aa7be5',
    500: '#7e42d8',
    950: '#000000',
  },
}
SCSS
$custom: #7e42d8;
$custom-light: #aa7be5;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42d8",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 264,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.53515,
    "c": 0.21584,
    "h": 296.7
  },
  "luminance": 0.1329
}

Semantic roles & 50–950 ramp

primary
#7E42D8
secondary
#C1DA9C
accent
#E93FA5
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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