#7E42BC#7E42BC

#7E42BC is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.4% C 0.185 H 303.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#7E42BC
RGBrgb(126, 66, 188)
HSLhsl(270, 48%, 50%)
HSVhsv(270, 65%, 74%)
CMYKcmyk(33%, 64.9%, 0%, 26.3%)
CIE-LABlab(41.16, 49.17, -54.55)
CIE-LCHlch(41.16, 73.44, 312.03°)
OKLaboklab(51.41% 0.1007 -0.1549)
OKLCHoklch(51.41% 0.185 303)
XYZxyz(19.6274, 11.9629, 48.8422)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42BC #80BC42
analogous
#4243BC #7E42BC #BB42BC
triadic
#7E42BC #BC7E42 #42BC7E
tetradic
#7E42BC #BC4243 #80BC42 #42BCBB
square
#7E42BC #BC4243 #80BC42 #42BCBB
split-complementary
#7E42BC #BCBB42 #43BC42
monochromatic
#412261 #60328F #7E42BC #9D6FCC #BC9CDC

Accessibility & contrast

On white

6.19
#7E42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7E42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42BC
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42BC#FFFFFF#000000##FFFFFF
##7E42BC1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#1861B9
Tritanopia (blue-blind)
#725D79
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7e42bc;
/* rgb */ color: rgb(126, 66, 188);
/* oklch */ color: oklch(51.4% 0.185 303.0);
Tailwind
colors: {
  custom: {
    50: '#a87ad1',
    500: '#7e42bc',
    950: '#000000',
  },
}
SCSS
$custom: #7e42bc;
$custom-light: #a87ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42bc",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 269.508,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.51412,
    "c": 0.18472,
    "h": 303
  },
  "luminance": 0.11963
}

Semantic roles & 50–950 ramp

primary
#7E42BC
secondary
#ADC991
accent
#D85095
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7E42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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