#7C42CA#7C42CA

#7C42CA is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.200 H 298.8°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#7C42CA
RGBrgb(124, 66, 202)
HSLhsl(266, 56%, 53%)
HSVhsv(266, 67%, 79%)
CMYKcmyk(38.6%, 67.3%, 0%, 20.8%)
CIE-LABlab(41.92, 52.24, -61.49)
CIE-LCHlch(41.92, 80.69, 310.35°)
OKLaboklab(52.22% 0.0964 -0.1753)
OKLCHoklch(52.22% 0.2 298.8)
XYZxyz(20.9184, 12.4455, 57.1658)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42CA #90CA42
analogous
#424CCA #7C42CA #C042CA
triadic
#7C42CA #CA7C42 #42CA7C
tetradic
#7C42CA #CA424C #90CA42 #42CAC0
square
#7C42CA #CA424C #90CA42 #42CAC0
split-complementary
#7C42CA #CAC042 #4CCA42
monochromatic
#432072 #5F2DA2 #7C42CA #9D72D7 #BEA2E5

Accessibility & contrast

On white

6.02
#7C42CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C42CA
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42CA#FFFFFF#000000##FFFFFF
##7C42CA1.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#6A6281
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c42ca;
/* rgb */ color: rgb(124, 66, 202);
/* oklch */ color: oklch(52.2% 0.200 298.8);
Tailwind
colors: {
  custom: {
    50: '#a87adb',
    500: '#7c42ca',
    950: '#000000',
  },
}
SCSS
$custom: #7c42ca;
$custom-light: #a87adb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42ca",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 202
  },
  "hsl": {
    "h": 265.588,
    "s": 56.198,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52219,
    "c": 0.20008,
    "h": 298.8
  },
  "luminance": 0.12446
}

Semantic roles & 50–950 ramp

primary
#7C42CA
secondary
#B8D196
accent
#DF489F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C42CA

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

Preview Lab → · Contrast checker → · Palette generator →

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