#7D42C4#7D42C4

#7D42C4 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.194 H 300.6°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#7D42C4
RGBrgb(125, 66, 196)
HSLhsl(267, 52%, 51%)
HSVhsv(267, 66%, 77%)
CMYKcmyk(36.2%, 66.3%, 0%, 23.1%)
CIE-LABlab(41.60, 50.94, -58.52)
CIE-LCHlch(41.60, 77.58, 311.04°)
OKLaboklab(51.88% 0.0985 -0.1665)
OKLCHoklch(51.88% 0.194 300.6)
XYZxyz(20.3670, 12.2418, 53.5037)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42C4 #89C442
analogous
#4248C4 #7D42C4 #BE42C4
triadic
#7D42C4 #C47D42 #42C47D
tetradic
#7D42C4 #C44248 #89C442 #42C4BE
square
#7D42C4 #C44248 #89C442 #42C4BE
split-complementary
#7D42C4 #C4BE42 #48C442
monochromatic
#42216A #603099 #7D42C4 #9D71D3 #BD9FE1

Accessibility & contrast

On white

6.09
#7D42C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7D42C4
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42C4#FFFFFF#000000##FFFFFF
##7D42C41.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d42c4;
/* rgb */ color: rgb(125, 66, 196);
/* oklch */ color: oklch(51.9% 0.194 300.6);
Tailwind
colors: {
  custom: {
    50: '#a87ad7',
    500: '#7d42c4',
    950: '#000000',
  },
}
SCSS
$custom: #7d42c4;
$custom-light: #a87ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42c4",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 196
  },
  "hsl": {
    "h": 267.231,
    "s": 52.419,
    "l": 51.373
  },
  "oklch": {
    "l": 0.5188,
    "c": 0.19351,
    "h": 300.6
  },
  "luminance": 0.12242
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D42C4

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

Preview Lab → · Contrast checker → · Palette generator →

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