#7C42D2#7C42D2

#7C42D2 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.209 H 297.1°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7C42D2
RGBrgb(124, 66, 210)
HSLhsl(264, 62%, 54%)
HSVhsv(264, 69%, 82%)
CMYKcmyk(41%, 68.6%, 0%, 17.6%)
CIE-LABlab(42.51, 54.27, -65.14)
CIE-LCHlch(42.51, 84.79, 309.80°)
OKLaboklab(52.83% 0.0952 -0.1861)
OKLCHoklch(52.83% 0.209 297.1)
XYZxyz(21.8902, 12.8343, 62.2842)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42D2 #98D242
analogous
#4250D2 #7C42D2 #C442D2
triadic
#7C42D2 #D27C42 #42D27C
tetradic
#7C42D2 #D24250 #98D242 #42D2C4
square
#7C42D2 #D24250 #98D242 #42D2C4
split-complementary
#7C42D2 #D2C442 #50D242
monochromatic
#441E7C #5F29AD #7C42D2 #9E73DE #C1A5EA

Accessibility & contrast

On white

5.89
#7C42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#7C42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42D2
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42D2#FFFFFF#000000##FFFFFF
##7C42D21.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0063CF
Tritanopia (blue-blind)
#666585
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c42d2;
/* rgb */ color: rgb(124, 66, 210);
/* oklch */ color: oklch(52.8% 0.209 297.1);
Tailwind
colors: {
  custom: {
    50: '#a87be1',
    500: '#7c42d2',
    950: '#000000',
  },
}
SCSS
$custom: #7c42d2;
$custom-light: #a87be1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42d2",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 264.167,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52833,
    "c": 0.20901,
    "h": 297.1
  },
  "luminance": 0.12835
}

Semantic roles & 50–950 ramp

primary
#7C42D2
secondary
#BED799
accent
#E543A4
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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