#7E42C8#7E42C8

#7E42C8 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.3% C 0.198 H 300.1°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7E42C8
RGBrgb(126, 66, 200)
HSLhsl(267, 55%, 52%)
HSVhsv(267, 67%, 78%)
CMYKcmyk(37%, 67%, 0%, 21.6%)
CIE-LABlab(42.00, 52.14, -60.18)
CIE-LCHlch(42.00, 79.62, 310.91°)
OKLaboklab(52.29% 0.0994 -0.1714)
OKLCHoklch(52.29% 0.198 300.1)
XYZxyz(20.9752, 12.5020, 55.9404)
Luminance0.1250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42C8 #8CC842
analogous
#4249C8 #7E42C8 #C142C8
triadic
#7E42C8 #C87E42 #42C87E
tetradic
#7E42C8 #C84249 #8CC842 #42C8C1
square
#7E42C8 #C84249 #8CC842 #42C8C1
split-complementary
#7E42C8 #C8C142 #49C842
monochromatic
#44206F #612E9F #7E42C8 #9E71D6 #BFA1E4

Accessibility & contrast

On white

6.00
#7E42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7E42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42C8
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42C8#FFFFFF#000000##FFFFFF
##7E42C81.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#6E6180
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e42c8;
/* rgb */ color: rgb(126, 66, 200);
/* oklch */ color: oklch(52.3% 0.198 300.1);
Tailwind
colors: {
  custom: {
    50: '#a97ada',
    500: '#7e42c8',
    950: '#000000',
  },
}
SCSS
$custom: #7e42c8;
$custom-light: #a97ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42c8",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 266.866,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52288,
    "c": 0.19815,
    "h": 300.1
  },
  "luminance": 0.12502
}

Semantic roles & 50–950 ramp

primary
#7E42C8
secondary
#B6D096
accent
#DE4A9C
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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