#7C42D6#7C42D6

#7C42D6 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.213 H 296.3°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#7C42D6
RGBrgb(124, 66, 214)
HSLhsl(264, 64%, 55%)
HSVhsv(264, 69%, 84%)
CMYKcmyk(42.1%, 69.2%, 0%, 16.1%)
CIE-LABlab(42.82, 55.30, -66.94)
CIE-LCHlch(42.82, 86.83, 309.56°)
OKLaboklab(53.15% 0.0946 -0.1914)
OKLCHoklch(53.15% 0.213 296.3)
XYZxyz(22.3948, 13.0361, 64.9416)
Luminance0.1304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42D6 #9CD642
analogous
#4252D6 #7C42D6 #C642D6
triadic
#7C42D6 #D67C42 #42D67C
tetradic
#7C42D6 #D64252 #9CD642 #42D6C6
square
#7C42D6 #D64252 #9CD642 #42D6C6
split-complementary
#7C42D6 #D6C642 #52D642
monochromatic
#441C82 #5E27B4 #7C42D6 #9F74E1 #C2A7EC

Accessibility & contrast

On white

5.82
#7C42D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#7C42D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42D6
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42D6#FFFFFF#000000##FFFFFF
##7C42D61.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#0063D3
Tritanopia (blue-blind)
#646687
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #7c42d6;
/* rgb */ color: rgb(124, 66, 214);
/* oklch */ color: oklch(53.1% 0.213 296.3);
Tailwind
colors: {
  custom: {
    50: '#a97be4',
    500: '#7c42d6',
    950: '#000000',
  },
}
SCSS
$custom: #7c42d6;
$custom-light: #a97be4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42d6",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 214
  },
  "hsl": {
    "h": 263.514,
    "s": 64.348,
    "l": 54.902
  },
  "oklch": {
    "l": 0.53146,
    "c": 0.21345,
    "h": 296.3
  },
  "luminance": 0.13037
}

Semantic roles & 50–950 ramp

primary
#7C42D6
secondary
#C1D99B
accent
#E740A6
background
#FAF7FE
surface
#F5EEFC
border
#CFC9D5
text
#110A16
muted
#807C84

Preview Lab

Preview with #7C42D6

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

Preview Lab → · Contrast checker → · Palette generator →

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