#7C40C5#7C40C5

#7C40C5 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.197 H 300.2°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#7C40C5
RGBrgb(124, 64, 197)
HSLhsl(267, 53%, 51%)
HSVhsv(267, 68%, 77%)
CMYKcmyk(37.1%, 67.5%, 0%, 22.7%)
CIE-LABlab(41.19, 51.98, -59.77)
CIE-LCHlch(41.19, 79.21, 311.02°)
OKLaboklab(51.58% 0.0992 -0.1703)
OKLCHoklch(51.58% 0.197 300.2)
XYZxyz(20.2211, 11.9829, 54.0601)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40C5 #89C540
analogous
#4046C5 #7C40C5 #BF40C5
triadic
#7C40C5 #C57C40 #40C57C
tetradic
#7C40C5 #C54046 #89C540 #40C5BF
square
#7C40C5 #C54046 #89C540 #40C5BF
split-complementary
#7C40C5 #C5BF40 #46C540
monochromatic
#42206A #5F2F99 #7C40C5 #9C6FD3 #BC9EE2

Accessibility & contrast

On white

6.18
#7C40C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#7C40C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40C5
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40C5#FFFFFF#000000##FFFFFF
##7C40C51.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C9
Deuteranopia (green-blind)
#0060C2
Tritanopia (blue-blind)
#6C5F7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7c40c5;
/* rgb */ color: rgb(124, 64, 197);
/* oklch */ color: oklch(51.6% 0.197 300.2);
Tailwind
colors: {
  custom: {
    50: '#a779d7',
    500: '#7c40c5',
    950: '#000000',
  },
}
SCSS
$custom: #7c40c5;
$custom-light: #a779d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40c5",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 197
  },
  "hsl": {
    "h": 267.068,
    "s": 53.414,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51583,
    "c": 0.19704,
    "h": 300.2
  },
  "luminance": 0.11983
}

Semantic roles & 50–950 ramp

primary
#7C40C5
secondary
#B3CE93
accent
#DD4B9B
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7C40C5

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

Preview Lab → · Contrast checker → · Palette generator →

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