#7E42CD#7E42CD

#7E42CD is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.204 H 299.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7E42CD
RGBrgb(126, 66, 205)
HSLhsl(266, 58%, 53%)
HSVhsv(266, 68%, 80%)
CMYKcmyk(38.5%, 67.8%, 0%, 19.6%)
CIE-LABlab(42.37, 53.39, -62.48)
CIE-LCHlch(42.37, 82.18, 310.51°)
OKLaboklab(52.66% 0.0987 -0.1782)
OKLCHoklch(52.66% 0.204 299)
XYZxyz(21.5691, 12.7396, 59.0684)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E42CD #91CD42
analogous
#424BCD #7E42CD #C342CD
triadic
#7E42CD #CD7E42 #42CD7E
tetradic
#7E42CD #CD424B #91CD42 #42CDC3
square
#7E42CD #CD424B #91CD42 #42CDC3
split-complementary
#7E42CD #CDC342 #4BCD42
monochromatic
#441F76 #612CA6 #7E42CD #9F72DA #C0A3E7

Accessibility & contrast

On white

5.92
#7E42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7E42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E42CD
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E42CD#FFFFFF#000000##FFFFFF
##7E42CD1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#0063CA
Tritanopia (blue-blind)
#6C6382
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7e42cd;
/* rgb */ color: rgb(126, 66, 205);
/* oklch */ color: oklch(52.7% 0.204 299.0);
Tailwind
colors: {
  custom: {
    50: '#a97bdd',
    500: '#7e42cd',
    950: '#000000',
  },
}
SCSS
$custom: #7e42cd;
$custom-light: #a97bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e42cd",
  "rgb": {
    "r": 126,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 265.899,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52664,
    "c": 0.2037,
    "h": 299
  },
  "luminance": 0.1274
}

Semantic roles & 50–950 ramp

primary
#7E42CD
secondary
#B9D397
accent
#E1469E
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7E42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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