#7E42BF#7E42BF

#7E42BF is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.6% C 0.188 H 302.3°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#7E42BF
RGBrgb(126, 66, 191)
HSLhsl(269, 49%, 50%)
HSVhsv(269, 65%, 75%)
CMYKcmyk(34%, 65.4%, 0%, 25.1%)
CIE-LABlab(41.36, 49.91, -55.97)
CIE-LCHlch(41.36, 74.99, 311.72°)
OKLaboklab(51.63% 0.1004 -0.159)
OKLCHoklch(51.63% 0.188 302.3)
XYZxyz(19.9542, 12.0936, 50.5632)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42BF #83BF42
analogous
#4244BF #7E42BF #BC42BF
triadic
#7E42BF #BF7E42 #42BF7E
tetradic
#7E42BF #BF4244 #83BF42 #42BFBC
square
#7E42BF #BF4244 #83BF42 #42BFBC
split-complementary
#7E42BF #BFBC42 #44BF42
monochromatic
#422265 #603292 #7E42BF #9D70CE #BC9DDE

Accessibility & contrast

On white

6.14
#7E42BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7E42BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42BF
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42BF#FFFFFF#000000##FFFFFF
##7E42BF1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C3
Deuteranopia (green-blind)
#0F61BC
Tritanopia (blue-blind)
#715E7B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e42bf;
/* rgb */ color: rgb(126, 66, 191);
/* oklch */ color: oklch(51.6% 0.188 302.3);
Tailwind
colors: {
  custom: {
    50: '#a87ad3',
    500: '#7e42bf',
    950: '#000000',
  },
}
SCSS
$custom: #7e42bf;
$custom-light: #a87ad3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42bf",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 191
  },
  "hsl": {
    "h": 268.8,
    "s": 49.407,
    "l": 50.392
  },
  "oklch": {
    "l": 0.51627,
    "c": 0.18808,
    "h": 302.3
  },
  "luminance": 0.12094
}

Semantic roles & 50–950 ramp

primary
#7E42BF
secondary
#B0CA93
accent
#D94F97
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E42BF

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

Preview Lab → · Contrast checker → · Palette generator →

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