#7E42CF#7E42CF

#7E42CF is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.206 H 298.6°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7E42CF
RGBrgb(126, 66, 207)
HSLhsl(266, 59%, 54%)
HSVhsv(266, 68%, 81%)
CMYKcmyk(39.1%, 68.1%, 0%, 18.8%)
CIE-LABlab(42.52, 53.89, -63.39)
CIE-LCHlch(42.52, 83.21, 310.37°)
OKLaboklab(52.82% 0.0984 -0.1809)
OKLCHoklch(52.82% 0.206 298.6)
XYZxyz(21.8120, 12.8367, 60.3479)
Luminance0.1284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42CF #93CF42
analogous
#424CCF #7E42CF #C542CF
triadic
#7E42CF #CF7E42 #42CF7E
tetradic
#7E42CF #CF424C #93CF42 #42CFC5
square
#7E42CF #CF424C #93CF42 #42CFC5
split-complementary
#7E42CF #CFC542 #4CCF42
monochromatic
#451F78 #612BA9 #7E42CF #9F73DB #C1A4E8

Accessibility & contrast

On white

5.89
#7E42CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7E42CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42CF
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42CF#FFFFFF#000000##FFFFFF
##7E42CF1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0063CC
Tritanopia (blue-blind)
#6B6483
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e42cf;
/* rgb */ color: rgb(126, 66, 207);
/* oklch */ color: oklch(52.8% 0.206 298.6);
Tailwind
colors: {
  custom: {
    50: '#a97bdf',
    500: '#7e42cf',
    950: '#000000',
  },
}
SCSS
$custom: #7e42cf;
$custom-light: #a97bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42cf",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 207
  },
  "hsl": {
    "h": 265.532,
    "s": 59.494,
    "l": 53.529
  },
  "oklch": {
    "l": 0.52817,
    "c": 0.20591,
    "h": 298.6
  },
  "luminance": 0.12837
}

Semantic roles & 50–950 ramp

primary
#7E42CF
secondary
#BBD598
accent
#E345A0
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7E42CF

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

Preview Lab → · Contrast checker → · Palette generator →

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