#7E42D2#7E42D2

#7E42D2 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.0% C 0.209 H 297.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#7E42D2
RGBrgb(126, 66, 210)
HSLhsl(265, 62%, 54%)
HSVhsv(265, 69%, 82%)
CMYKcmyk(40%, 68.6%, 0%, 17.6%)
CIE-LABlab(42.74, 54.65, -64.76)
CIE-LCHlch(42.74, 84.74, 310.16°)
OKLaboklab(53.05% 0.098 -0.1849)
OKLCHoklch(53.05% 0.209 297.9)
XYZxyz(22.1823, 12.9848, 62.2979)
Luminance0.1298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42D2 #96D242
analogous
#424ED2 #7E42D2 #C642D2
triadic
#7E42D2 #D27E42 #42D27E
tetradic
#7E42D2 #D2424E #96D242 #42D2C6
square
#7E42D2 #D2424E #96D242 #42D2C6
split-complementary
#7E42D2 #D2C642 #4ED242
monochromatic
#451E7C #6029AD #7E42D2 #A073DE #C1A5EA

Accessibility & contrast

On white

5.84
#7E42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#7E42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42D2
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42D2#FFFFFF#000000##FFFFFF
##7E42D21.005.843.605.84
#FFFFFF5.841.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0063CF
Tritanopia (blue-blind)
#696585
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7e42d2;
/* rgb */ color: rgb(126, 66, 210);
/* oklch */ color: oklch(53.0% 0.209 297.9);
Tailwind
colors: {
  custom: {
    50: '#aa7be1',
    500: '#7e42d2',
    950: '#000000',
  },
}
SCSS
$custom: #7e42d2;
$custom-light: #aa7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42d2",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 265,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.53047,
    "c": 0.20923,
    "h": 297.9
  },
  "luminance": 0.12985
}

Semantic roles & 50–950 ramp

primary
#7E42D2
secondary
#BDD799
accent
#E543A1
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7E42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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