#7E42D0#7E42D0

#7E42D0 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.9% C 0.207 H 298.3°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7E42D0
RGBrgb(126, 66, 208)
HSLhsl(265, 60%, 54%)
HSVhsv(265, 68%, 82%)
CMYKcmyk(39.4%, 68.3%, 0%, 18.4%)
CIE-LABlab(42.59, 54.15, -63.85)
CIE-LCHlch(42.59, 83.72, 310.30°)
OKLaboklab(52.89% 0.0983 -0.1822)
OKLCHoklch(52.89% 0.207 298.3)
XYZxyz(21.9347, 12.8858, 60.9938)
Luminance0.1289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42D0 #94D042
analogous
#424DD0 #7E42D0 #C542D0
triadic
#7E42D0 #D07E42 #42D07E
tetradic
#7E42D0 #D0424D #94D042 #42D0C5
square
#7E42D0 #D0424D #94D042 #42D0C5
split-complementary
#7E42D0 #D0C542 #4DD042
monochromatic
#451E79 #602AAA #7E42D0 #9F73DC #C1A4E8

Accessibility & contrast

On white

5.87
#7E42D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7E42D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42D0
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42D0#FFFFFF#000000##FFFFFF
##7E42D01.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D4
Deuteranopia (green-blind)
#0063CD
Tritanopia (blue-blind)
#6A6484
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e42d0;
/* rgb */ color: rgb(126, 66, 208);
/* oklch */ color: oklch(52.9% 0.207 298.3);
Tailwind
colors: {
  custom: {
    50: '#aa7bdf',
    500: '#7e42d0',
    950: '#000000',
  },
}
SCSS
$custom: #7e42d0;
$custom-light: #aa7bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42d0",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 208
  },
  "hsl": {
    "h": 265.352,
    "s": 60.169,
    "l": 53.725
  },
  "oklch": {
    "l": 0.52893,
    "c": 0.20702,
    "h": 298.3
  },
  "luminance": 0.12886
}

Semantic roles & 50–950 ramp

primary
#7E42D0
secondary
#BCD599
accent
#E344A0
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7E42D0

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

Preview Lab → · Contrast checker → · Palette generator →

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