#7C40C6#7C40C6

#7C40C6 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.7% C 0.198 H 300.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#7C40C6
RGBrgb(124, 64, 198)
HSLhsl(267, 54%, 51%)
HSVhsv(267, 68%, 78%)
CMYKcmyk(37.4%, 67.7%, 0%, 22.4%)
CIE-LABlab(41.26, 52.23, -60.23)
CIE-LCHlch(41.26, 79.72, 310.93°)
OKLaboklab(51.66% 0.099 -0.1716)
OKLCHoklch(51.66% 0.198 300)
XYZxyz(20.3361, 12.0289, 54.6655)
Luminance0.1203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40C6 #8AC640
analogous
#4047C6 #7C40C6 #BF40C6
triadic
#7C40C6 #C67C40 #40C67C
tetradic
#7C40C6 #C64047 #8AC640 #40C6BF
square
#7C40C6 #C64047 #8AC640 #40C6BF
split-complementary
#7C40C6 #C6BF40 #47C640
monochromatic
#42206C #5F2E9B #7C40C6 #9C6FD4 #BD9EE2

Accessibility & contrast

On white

6.17
#7C40C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#7C40C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40C6
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40C6#FFFFFF#000000##FFFFFF
##7C40C61.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0060C3
Tritanopia (blue-blind)
#6B5F7E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7c40c6;
/* rgb */ color: rgb(124, 64, 198);
/* oklch */ color: oklch(51.7% 0.198 300.0);
Tailwind
colors: {
  custom: {
    50: '#a779d8',
    500: '#7c40c6',
    950: '#000000',
  },
}
SCSS
$custom: #7c40c6;
$custom-light: #a779d8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40c6",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 198
  },
  "hsl": {
    "h": 266.866,
    "s": 54.032,
    "l": 51.373
  },
  "oklch": {
    "l": 0.51658,
    "c": 0.19815,
    "h": 300
  },
  "luminance": 0.12029
}

Semantic roles & 50–950 ramp

primary
#7C40C6
secondary
#B4CE93
accent
#DD4A9C
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C40C6

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

Preview Lab → · Contrast checker → · Palette generator →

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