#7E42CA#7E42CA

#7E42CA is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.4% C 0.200 H 299.7°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7E42CA
RGBrgb(126, 66, 202)
HSLhsl(266, 56%, 53%)
HSVhsv(266, 67%, 79%)
CMYKcmyk(37.6%, 67.3%, 0%, 20.8%)
CIE-LABlab(42.15, 52.64, -61.10)
CIE-LCHlch(42.15, 80.65, 310.74°)
OKLaboklab(52.44% 0.0991 -0.1741)
OKLCHoklch(52.44% 0.2 299.7)
XYZxyz(21.2104, 12.5961, 57.1795)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42CA #8ECA42
analogous
#424ACA #7E42CA #C242CA
triadic
#7E42CA #CA7E42 #42CA7E
tetradic
#7E42CA #CA424A #8ECA42 #42CAC2
square
#7E42CA #CA424A #8ECA42 #42CAC2
split-complementary
#7E42CA #CAC242 #4ACA42
monochromatic
#442072 #612DA2 #7E42CA #9F72D7 #BFA2E5

Accessibility & contrast

On white

5.97
#7E42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7E42CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42CA
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42CA#FFFFFF#000000##FFFFFF
##7E42CA1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#6D6281
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e42ca;
/* rgb */ color: rgb(126, 66, 202);
/* oklch */ color: oklch(52.4% 0.200 299.7);
Tailwind
colors: {
  custom: {
    50: '#a97adb',
    500: '#7e42ca',
    950: '#000000',
  },
}
SCSS
$custom: #7e42ca;
$custom-light: #a97adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42ca",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 266.471,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52438,
    "c": 0.20037,
    "h": 299.7
  },
  "luminance": 0.12596
}

Semantic roles & 50–950 ramp

primary
#7E42CA
secondary
#B7D196
accent
#DF489D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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