#7E42BE#7E42BE

#7E42BE is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.187 H 302.5°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#7E42BE
RGBrgb(126, 66, 190)
HSLhsl(269, 49%, 50%)
HSVhsv(269, 65%, 75%)
CMYKcmyk(33.7%, 65.3%, 0%, 25.5%)
CIE-LABlab(41.30, 49.66, -55.50)
CIE-LCHlch(41.30, 74.48, 311.82°)
OKLaboklab(51.55% 0.1005 -0.1577)
OKLCHoklch(51.55% 0.187 302.5)
XYZxyz(19.8445, 12.0497, 49.9856)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42BE #82BE42
analogous
#4244BE #7E42BE #BC42BE
triadic
#7E42BE #BE7E42 #42BE7E
tetradic
#7E42BE #BE4244 #82BE42 #42BEBC
square
#7E42BE #BE4244 #82BE42 #42BEBC
split-complementary
#7E42BE #BEBC42 #44BE42
monochromatic
#422263 #603291 #7E42BE #9D70CE #BC9DDD

Accessibility & contrast

On white

6.16
#7E42BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7E42BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42BE
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42BE#FFFFFF#000000##FFFFFF
##7E42BE1.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C2
Deuteranopia (green-blind)
#1261BB
Tritanopia (blue-blind)
#715D7A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e42be;
/* rgb */ color: rgb(126, 66, 190);
/* oklch */ color: oklch(51.6% 0.187 302.5);
Tailwind
colors: {
  custom: {
    50: '#a87ad2',
    500: '#7e42be',
    950: '#000000',
  },
}
SCSS
$custom: #7e42be;
$custom-light: #a87ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42be",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 190
  },
  "hsl": {
    "h": 269.032,
    "s": 48.819,
    "l": 50.196
  },
  "oklch": {
    "l": 0.51555,
    "c": 0.18696,
    "h": 302.5
  },
  "luminance": 0.1205
}

Semantic roles & 50–950 ramp

primary
#7E42BE
secondary
#AFCA92
accent
#D84F96
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E42BE

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

Preview Lab → · Contrast checker → · Palette generator →

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