#7C42D8#7C42D8

#7C42D8 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.216 H 295.9°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#7C42D8
RGBrgb(124, 66, 216)
HSLhsl(263, 66%, 55%)
HSVhsv(263, 69%, 85%)
CMYKcmyk(42.6%, 69.4%, 0%, 15.3%)
CIE-LABlab(42.97, 55.81, -67.84)
CIE-LCHlch(42.97, 87.84, 309.44°)
OKLaboklab(53.3% 0.0942 -0.194)
OKLCHoklch(53.3% 0.216 295.9)
XYZxyz(22.6518, 13.1389, 66.2950)
Luminance0.1314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42D8 #9ED842
analogous
#4253D8 #7C42D8 #C742D8
triadic
#7C42D8 #D87C42 #42D87C
tetradic
#7C42D8 #D84253 #9ED842 #42D8C7
square
#7C42D8 #D84253 #9ED842 #42D8C7
split-complementary
#7C42D8 #D8C742 #53D842
monochromatic
#441B84 #5E26B7 #7C42D8 #9F75E2 #C2A7ED

Accessibility & contrast

On white

5.79
#7C42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#7C42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42D8
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42D8#FFFFFF#000000##FFFFFF
##7C42D81.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DC
Deuteranopia (green-blind)
#0063D5
Tritanopia (blue-blind)
#646788
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7c42d8;
/* rgb */ color: rgb(124, 66, 216);
/* oklch */ color: oklch(53.3% 0.216 295.9);
Tailwind
colors: {
  custom: {
    50: '#a97be5',
    500: '#7c42d8',
    950: '#000000',
  },
}
SCSS
$custom: #7c42d8;
$custom-light: #a97be5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42d8",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 263.2,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.53304,
    "c": 0.21566,
    "h": 295.9
  },
  "luminance": 0.13139
}

Semantic roles & 50–950 ramp

primary
#7C42D8
secondary
#C2DA9C
accent
#E93FA7
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7C42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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