#7E42BB#7E42BB

#7E42BB is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.3% C 0.184 H 303.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#7E42BB
RGBrgb(126, 66, 187)
HSLhsl(270, 48%, 50%)
HSVhsv(270, 65%, 73%)
CMYKcmyk(32.6%, 64.7%, 0%, 26.7%)
CIE-LABlab(41.09, 48.93, -54.08)
CIE-LCHlch(41.09, 72.93, 312.14°)
OKLaboklab(51.34% 0.1008 -0.1535)
OKLCHoklch(51.34% 0.184 303.3)
XYZxyz(19.5200, 11.9199, 48.2765)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42BB #7FBB42
analogous
#4243BB #7E42BB #BB42BB
triadic
#7E42BB #BB7E42 #42BB7E
tetradic
#7E42BB #BB4243 #7FBB42 #42BBBB
square
#7E42BB #BB4243 #7FBB42 #42BBBB
split-complementary
#7E42BB #BBBB42 #43BB42
monochromatic
#412261 #60328E #7E42BB #9D6ECC #BB9CDC

Accessibility & contrast

On white

6.21
#7E42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7E42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42BB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42BB#FFFFFF#000000##FFFFFF
##7E42BB1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BF
Deuteranopia (green-blind)
#1A61B8
Tritanopia (blue-blind)
#725C79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e42bb;
/* rgb */ color: rgb(126, 66, 187);
/* oklch */ color: oklch(51.3% 0.184 303.3);
Tailwind
colors: {
  custom: {
    50: '#a87ad0',
    500: '#7e42bb',
    950: '#000000',
  },
}
SCSS
$custom: #7e42bb;
$custom-light: #a87ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42bb",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 269.752,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.51341,
    "c": 0.1836,
    "h": 303.3
  },
  "luminance": 0.1192
}

Semantic roles & 50–950 ramp

primary
#7E42BB
secondary
#ADC891
accent
#D75094
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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