#7C42AA#7C42AA

#7C42AA is a mid, vivid violet. Relative luminance 0.111; OKLCH L 49.9% C 0.164 H 307.2°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7C42AA
RGBrgb(124, 66, 170)
HSLhsl(273, 44%, 46%)
HSVhsv(273, 61%, 67%)
CMYKcmyk(27.1%, 61.2%, 0%, 33.3%)
CIE-LABlab(39.72, 44.35, -46.25)
CIE-LCHlch(39.72, 64.08, 313.79°)
OKLaboklab(49.94% 0.099 -0.1306)
OKLCHoklch(49.94% 0.164 307.2)
XYZxyz(17.5146, 11.0840, 39.2392)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C42AA #70AA42
analogous
#4842AA #7C42AA #AA42A4
triadic
#7C42AA #AA7C42 #42AA7C
tetradic
#7C42AA #AA4842 #70AA42 #42A4AA
square
#7C42AA #AA4842 #70AA42 #42A4AA
split-complementary
#7C42AA #A4AA42 #42AA48
monochromatic
#3C2052 #5C317E #7C42AA #9A66C3 #B792D5

Accessibility & contrast

On white

6.53
#7C42AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7C42AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C42AA
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C42AA#FFFFFF#000000##FFFFFF
##7C42AA1.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115BAD
Deuteranopia (green-blind)
#305EA8
Tritanopia (blue-blind)
#755770
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7c42aa;
/* rgb */ color: rgb(124, 66, 170);
/* oklch */ color: oklch(49.9% 0.164 307.2);
Tailwind
colors: {
  custom: {
    50: '#a579c4',
    500: '#7c42aa',
    950: '#000000',
  },
}
SCSS
$custom: #7c42aa;
$custom-light: #a579c4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c42aa",
  "rgb": {
    "r": 124,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 273.462,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.49938,
    "c": 0.16383,
    "h": 307.2
  },
  "luminance": 0.11084
}

Semantic roles & 50–950 ramp

primary
#7C42AA
secondary
#A1C088
accent
#D4548D
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100913
muted
#7F7B82

Preview Lab

Preview with #7C42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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