#7E42E2#7E42E2

#7E42E2 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.3% C 0.227 H 294.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#7E42E2
RGBrgb(126, 66, 226)
HSLhsl(263, 73%, 57%)
HSVhsv(263, 71%, 89%)
CMYKcmyk(44.2%, 70.8%, 0%, 11.4%)
CIE-LABlab(43.98, 58.72, -71.90)
CIE-LCHlch(43.98, 92.83, 309.24°)
OKLaboklab(54.31% 0.0952 -0.2058)
OKLCHoklch(54.31% 0.227 294.8)
XYZxyz(24.2762, 13.8224, 73.3257)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42E2 #A6E242
analogous
#4256E2 #7E42E2 #CE42E2
triadic
#7E42E2 #E27E42 #42E27E
tetradic
#7E42E2 #E24256 #A6E242 #42E2CE
square
#7E42E2 #E24256 #A6E242 #42E2CE
split-complementary
#7E42E2 #E2CE42 #56E242
monochromatic
#451793 #5E1FC8 #7E42E2 #A277EA #C6ACF2

Accessibility & contrast

On white

5.58
#7E42E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#7E42E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42E2
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42E2#FFFFFF#000000##FFFFFF
##7E42E21.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E7
Deuteranopia (green-blind)
#0065DF
Tritanopia (blue-blind)
#626B8E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7e42e2;
/* rgb */ color: rgb(126, 66, 226);
/* oklch */ color: oklch(54.3% 0.227 294.8);
Tailwind
colors: {
  custom: {
    50: '#ab7bec',
    500: '#7e42e2',
    950: '#000000',
  },
}
SCSS
$custom: #7e42e2;
$custom-light: #ab7bec;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42e2",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 226
  },
  "hsl": {
    "h": 262.5,
    "s": 73.394,
    "l": 57.255
  },
  "oklch": {
    "l": 0.54313,
    "c": 0.22678,
    "h": 294.8
  },
  "luminance": 0.13823
}

Semantic roles & 50–950 ramp

primary
#7E42E2
secondary
#C8E09F
accent
#F038AB
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7E42E2

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

Preview Lab → · Contrast checker → · Palette generator →

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