#7C42CE#7C42CE

#7C42CE is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.5% C 0.205 H 297.9°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7C42CE
RGBrgb(124, 66, 206)
HSLhsl(265, 59%, 53%)
HSVhsv(265, 68%, 81%)
CMYKcmyk(39.8%, 68%, 0%, 19.2%)
CIE-LABlab(42.21, 53.26, -63.32)
CIE-LCHlch(42.21, 82.74, 310.07°)
OKLaboklab(52.52% 0.0958 -0.1807)
OKLCHoklch(52.52% 0.205 297.9)
XYZxyz(21.3981, 12.6374, 59.6924)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42CE #94CE42
analogous
#424ECE #7C42CE #C242CE
triadic
#7C42CE #CE7C42 #42CE7C
tetradic
#7C42CE #CE424E #94CE42 #42CEC2
square
#7C42CE #CE424E #94CE42 #42CEC2
split-complementary
#7C42CE #CEC242 #4ECE42
monochromatic
#431F77 #5F2BA7 #7C42CE #9E73DB #BFA3E7

Accessibility & contrast

On white

5.95
#7C42CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7C42CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42CE
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42CE#FFFFFF#000000##FFFFFF
##7C42CE1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#686383
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c42ce;
/* rgb */ color: rgb(124, 66, 206);
/* oklch */ color: oklch(52.5% 0.205 297.9);
Tailwind
colors: {
  custom: {
    50: '#a87ade',
    500: '#7c42ce',
    950: '#000000',
  },
}
SCSS
$custom: #7c42ce;
$custom-light: #a87ade;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42ce",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 206
  },
  "hsl": {
    "h": 264.857,
    "s": 58.824,
    "l": 53.333
  },
  "oklch": {
    "l": 0.52524,
    "c": 0.20456,
    "h": 297.9
  },
  "luminance": 0.12638
}

Semantic roles & 50–950 ramp

primary
#7C42CE
secondary
#BBD498
accent
#E246A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C42CE

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

Preview Lab → · Contrast checker → · Palette generator →

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