#7C42D3#7C42D3

#7C42D3 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 52.9% C 0.210 H 296.9°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#7C42D3
RGBrgb(124, 66, 211)
HSLhsl(264, 62%, 54%)
HSVhsv(264, 69%, 83%)
CMYKcmyk(41.2%, 68.7%, 0%, 17.3%)
CIE-LABlab(42.59, 54.53, -65.59)
CIE-LCHlch(42.59, 85.30, 309.74°)
OKLaboklab(52.91% 0.0951 -0.1874)
OKLCHoklch(52.91% 0.21 296.9)
XYZxyz(22.0152, 12.8842, 62.9424)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42D3 #99D342
analogous
#4251D3 #7C42D3 #C542D3
triadic
#7C42D3 #D37C42 #42D37C
tetradic
#7C42D3 #D34251 #99D342 #42D3C5
square
#7C42D3 #D34251 #99D342 #42D3C5
split-complementary
#7C42D3 #D3C542 #51D342
monochromatic
#441D7D #5E29AF #7C42D3 #9E74DF #C1A5EA

Accessibility & contrast

On white

5.87
#7C42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#7C42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42D3
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42D3#FFFFFF#000000##FFFFFF
##7C42D31.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#0063D0
Tritanopia (blue-blind)
#666586
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7c42d3;
/* rgb */ color: rgb(124, 66, 211);
/* oklch */ color: oklch(52.9% 0.210 296.9);
Tailwind
colors: {
  custom: {
    50: '#a97be1',
    500: '#7c42d3',
    950: '#000000',
  },
}
SCSS
$custom: #7c42d3;
$custom-light: #a97be1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42d3",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 264,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52911,
    "c": 0.21012,
    "h": 296.9
  },
  "luminance": 0.12885
}

Semantic roles & 50–950 ramp

primary
#7C42D3
secondary
#BFD79A
accent
#E542A4
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #7C42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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