#7E42D5#7E42D5

#7E42D5 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.213 H 297.3°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7E42D5
RGBrgb(126, 66, 213)
HSLhsl(264, 64%, 55%)
HSVhsv(264, 69%, 84%)
CMYKcmyk(40.8%, 69%, 0%, 16.5%)
CIE-LABlab(42.97, 55.41, -66.11)
CIE-LCHlch(42.97, 86.26, 309.96°)
OKLaboklab(53.28% 0.0975 -0.1889)
OKLCHoklch(53.28% 0.213 297.3)
XYZxyz(22.5595, 13.1357, 64.2848)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42D5 #99D542
analogous
#4250D5 #7E42D5 #C842D5
triadic
#7E42D5 #D57E42 #42D57E
tetradic
#7E42D5 #D54250 #99D542 #42D5C8
square
#7E42D5 #D54250 #99D542 #42D5C8
split-complementary
#7E42D5 #D5C842 #50D542
monochromatic
#451C80 #6028B2 #7E42D5 #A074E0 #C2A6EB

Accessibility & contrast

On white

5.79
#7E42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7E42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42D5
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42D5#FFFFFF#000000##FFFFFF
##7E42D51.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#0064D2
Tritanopia (blue-blind)
#686687
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e42d5;
/* rgb */ color: rgb(126, 66, 213);
/* oklch */ color: oklch(53.3% 0.213 297.3);
Tailwind
colors: {
  custom: {
    50: '#aa7be3',
    500: '#7e42d5',
    950: '#000000',
  },
}
SCSS
$custom: #7e42d5;
$custom-light: #aa7be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42d5",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 264.49,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.5328,
    "c": 0.21255,
    "h": 297.3
  },
  "luminance": 0.13136
}

Semantic roles & 50–950 ramp

primary
#7E42D5
secondary
#BFD89A
accent
#E741A3
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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