#7C42CC#7C42CC

#7C42CC is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.202 H 298.4°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#7C42CC
RGBrgb(124, 66, 204)
HSLhsl(265, 58%, 53%)
HSVhsv(265, 68%, 80%)
CMYKcmyk(39.2%, 67.6%, 0%, 20%)
CIE-LABlab(42.06, 52.75, -62.41)
CIE-LCHlch(42.06, 81.72, 310.21°)
OKLaboklab(52.37% 0.0961 -0.178)
OKLCHoklch(52.37% 0.202 298.4)
XYZxyz(21.1567, 12.5408, 58.4210)
Luminance0.1254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42CC #92CC42
analogous
#424DCC #7C42CC #C142CC
triadic
#7C42CC #CC7C42 #42CC7C
tetradic
#7C42CC #CC424D #92CC42 #42CCC1
square
#7C42CC #CC424D #92CC42 #42CCC1
split-complementary
#7C42CC #CCC142 #4DCC42
monochromatic
#431F74 #5F2CA4 #7C42CC #9D72D9 #BFA2E6

Accessibility & contrast

On white

5.99
#7C42CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#7C42CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42CC
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42CC#FFFFFF#000000##FFFFFF
##7C42CC1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D0
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#696382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c42cc;
/* rgb */ color: rgb(124, 66, 204);
/* oklch */ color: oklch(52.4% 0.202 298.4);
Tailwind
colors: {
  custom: {
    50: '#a87adc',
    500: '#7c42cc',
    950: '#000000',
  },
}
SCSS
$custom: #7c42cc;
$custom-light: #a87adc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42cc",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 204
  },
  "hsl": {
    "h": 265.217,
    "s": 57.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.52371,
    "c": 0.20232,
    "h": 298.4
  },
  "luminance": 0.12541
}

Semantic roles & 50–950 ramp

primary
#7C42CC
secondary
#BAD397
accent
#E147A0
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C42CC

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

Preview Lab → · Contrast checker → · Palette generator →

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