#7D42C8#7D42C8

#7D42C8 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.2% C 0.198 H 299.7°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#7D42C8
RGBrgb(125, 66, 200)
HSLhsl(266, 55%, 52%)
HSVhsv(266, 67%, 78%)
CMYKcmyk(37.5%, 67%, 0%, 21.6%)
CIE-LABlab(41.89, 51.94, -60.37)
CIE-LCHlch(41.89, 79.64, 310.70°)
OKLaboklab(52.18% 0.098 -0.172)
OKLCHoklch(52.18% 0.198 299.7)
XYZxyz(20.8284, 12.4263, 55.9336)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D42C8 #8DC842
analogous
#424AC8 #7D42C8 #C042C8
triadic
#7D42C8 #C87D42 #42C87D
tetradic
#7D42C8 #C8424A #8DC842 #42C8C0
square
#7D42C8 #C8424A #8DC842 #42C8C0
split-complementary
#7D42C8 #C8C042 #4AC842
monochromatic
#43206F #602E9F #7D42C8 #9E71D6 #BEA1E4

Accessibility & contrast

On white

6.03
#7D42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7D42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7D42C8
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D42C8#FFFFFF#000000##FFFFFF
##7D42C81.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CC
Deuteranopia (green-blind)
#0062C5
Tritanopia (blue-blind)
#6C6180
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7d42c8;
/* rgb */ color: rgb(125, 66, 200);
/* oklch */ color: oklch(52.2% 0.198 299.7);
Tailwind
colors: {
  custom: {
    50: '#a87ada',
    500: '#7d42c8',
    950: '#000000',
  },
}
SCSS
$custom: #7d42c8;
$custom-light: #a87ada;
$custom-dark: #000000;
JSON
{
  "hex": "#7d42c8",
  "rgb": {
    "r": 125,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 266.418,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52177,
    "c": 0.19799,
    "h": 299.7
  },
  "luminance": 0.12427
}

Semantic roles & 50–950 ramp

primary
#7D42C8
secondary
#B6D096
accent
#DE4A9D
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7D42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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