#7C42C4#7C42C4

#7C42C4 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.8% C 0.193 H 300.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#7C42C4
RGBrgb(124, 66, 196)
HSLhsl(267, 52%, 51%)
HSVhsv(267, 66%, 77%)
CMYKcmyk(36.7%, 66.3%, 0%, 23.1%)
CIE-LABlab(41.48, 50.73, -58.71)
CIE-LCHlch(41.48, 77.59, 310.83°)
OKLaboklab(51.77% 0.0972 -0.1672)
OKLCHoklch(51.77% 0.193 300.2)
XYZxyz(20.2218, 12.1669, 53.4969)
Luminance0.1217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42C4 #8AC442
analogous
#4249C4 #7C42C4 #BD42C4
triadic
#7C42C4 #C47C42 #42C47C
tetradic
#7C42C4 #C44249 #8AC442 #42C4BD
square
#7C42C4 #C44249 #8AC442 #42C4BD
split-complementary
#7C42C4 #C4BD42 #49C442
monochromatic
#42216A #5F3099 #7C42C4 #9C71D3 #BD9FE1

Accessibility & contrast

On white

6.12
#7C42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#7C42C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42C4
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42C4#FFFFFF#000000##FFFFFF
##7C42C41.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#0061C1
Tritanopia (blue-blind)
#6C607D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7c42c4;
/* rgb */ color: rgb(124, 66, 196);
/* oklch */ color: oklch(51.8% 0.193 300.2);
Tailwind
colors: {
  custom: {
    50: '#a77ad7',
    500: '#7c42c4',
    950: '#000000',
  },
}
SCSS
$custom: #7c42c4;
$custom-light: #a77ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42c4",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 266.769,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51769,
    "c": 0.19335,
    "h": 300.2
  },
  "luminance": 0.12167
}

Semantic roles & 50–950 ramp

primary
#7C42C4
secondary
#B4CE94
accent
#DC4C9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7C42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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