#7E42C3#7E42C3

#7E42C3 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.193 H 301.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#7E42C3
RGBrgb(126, 66, 195)
HSLhsl(268, 52%, 51%)
HSVhsv(268, 66%, 76%)
CMYKcmyk(35.4%, 66.2%, 0%, 23.5%)
CIE-LABlab(41.65, 50.90, -57.85)
CIE-LCHlch(41.65, 77.05, 311.34°)
OKLaboklab(51.92% 0.1 -0.1646)
OKLCHoklch(51.92% 0.193 301.3)
XYZxyz(20.4004, 12.2721, 52.9132)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42C3 #87C342
analogous
#4246C3 #7E42C3 #BE42C3
triadic
#7E42C3 #C37E42 #42C37E
tetradic
#7E42C3 #C34246 #87C342 #42C3BE
square
#7E42C3 #C34246 #87C342 #42C3BE
split-complementary
#7E42C3 #C3BE42 #46C342
monochromatic
#432169 #603098 #7E42C3 #9E70D2 #BD9FE0

Accessibility & contrast

On white

6.08
#7E42C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#7E42C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42C3
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42C3#FFFFFF#000000##FFFFFF
##7E42C31.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#0062C0
Tritanopia (blue-blind)
#6F5F7D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7e42c3;
/* rgb */ color: rgb(126, 66, 195);
/* oklch */ color: oklch(51.9% 0.193 301.3);
Tailwind
colors: {
  custom: {
    50: '#a87ad6',
    500: '#7e42c3',
    950: '#000000',
  },
}
SCSS
$custom: #7e42c3;
$custom-light: #a87ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42c3",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 195
  },
  "hsl": {
    "h": 267.907,
    "s": 51.807,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51918,
    "c": 0.19257,
    "h": 301.3
  },
  "luminance": 0.12272
}

Semantic roles & 50–950 ramp

primary
#7E42C3
secondary
#B2CD94
accent
#DB4D99
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7E42C3

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

Preview Lab → · Contrast checker → · Palette generator →

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