#7C42CD#7C42CD

#7C42CD is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.4% C 0.203 H 298.1°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7C42CD
RGBrgb(124, 66, 205)
HSLhsl(265, 58%, 53%)
HSVhsv(265, 68%, 80%)
CMYKcmyk(39.5%, 67.8%, 0%, 19.6%)
CIE-LABlab(42.14, 53.00, -62.87)
CIE-LCHlch(42.14, 82.23, 310.13°)
OKLaboklab(52.45% 0.096 -0.1794)
OKLCHoklch(52.45% 0.203 298.1)
XYZxyz(21.2770, 12.5890, 59.0547)
Luminance0.1259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42CD #93CD42
analogous
#424DCD #7C42CD #C142CD
triadic
#7C42CD #CD7C42 #42CD7C
tetradic
#7C42CD #CD424D #93CD42 #42CDC1
square
#7C42CD #CD424D #93CD42 #42CDC1
split-complementary
#7C42CD #CDC142 #4DCD42
monochromatic
#431F76 #5F2CA6 #7C42CD #9E72DA #BFA3E7

Accessibility & contrast

On white

5.97
#7C42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7C42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42CD
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42CD#FFFFFF#000000##FFFFFF
##7C42CD1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D1
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#686382
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c42cd;
/* rgb */ color: rgb(124, 66, 205);
/* oklch */ color: oklch(52.4% 0.203 298.1);
Tailwind
colors: {
  custom: {
    50: '#a87add',
    500: '#7c42cd',
    950: '#000000',
  },
}
SCSS
$custom: #7c42cd;
$custom-light: #a87add;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42cd",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 265.036,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52447,
    "c": 0.20344,
    "h": 298.1
  },
  "luminance": 0.12589
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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