#7E42D7#7E42D7

#7E42D7 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.4% C 0.215 H 296.9°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#7E42D7
RGBrgb(126, 66, 215)
HSLhsl(264, 65%, 55%)
HSVhsv(264, 69%, 84%)
CMYKcmyk(41.4%, 69.3%, 0%, 15.7%)
CIE-LABlab(43.12, 55.91, -67.01)
CIE-LCHlch(43.12, 87.28, 309.84°)
OKLaboklab(53.44% 0.0972 -0.1915)
OKLCHoklch(53.44% 0.215 296.9)
XYZxyz(22.8149, 13.2379, 65.6299)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42D7 #9BD742
analogous
#4250D7 #7E42D7 #C942D7
triadic
#7E42D7 #D77E42 #42D77E
tetradic
#7E42D7 #D74250 #9BD742 #42D7C9
square
#7E42D7 #D74250 #9BD742 #42D7C9
split-complementary
#7E42D7 #D7C942 #50D742
monochromatic
#451C83 #6026B5 #7E42D7 #A075E2 #C3A7EC

Accessibility & contrast

On white

5.76
#7E42D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#7E42D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42D7
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42D7#FFFFFF#000000##FFFFFF
##7E42D71.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DB
Deuteranopia (green-blind)
#0064D4
Tritanopia (blue-blind)
#676788
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #7e42d7;
/* rgb */ color: rgb(126, 66, 215);
/* oklch */ color: oklch(53.4% 0.215 296.9);
Tailwind
colors: {
  custom: {
    50: '#aa7be4',
    500: '#7e42d7',
    950: '#000000',
  },
}
SCSS
$custom: #7e42d7;
$custom-light: #aa7be4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42d7",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 215
  },
  "hsl": {
    "h": 264.161,
    "s": 65.066,
    "l": 55.098
  },
  "oklch": {
    "l": 0.53436,
    "c": 0.21474,
    "h": 296.9
  },
  "luminance": 0.13238
}

Semantic roles & 50–950 ramp

primary
#7E42D7
secondary
#C0DA9B
accent
#E840A4
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E42D7

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

Preview Lab → · Contrast checker → · Palette generator →

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