#7C40C4#7C40C4

#7C40C4 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.5% C 0.196 H 300.5°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#7C40C4
RGBrgb(124, 64, 196)
HSLhsl(267, 53%, 51%)
HSVhsv(267, 67%, 77%)
CMYKcmyk(36.7%, 67.3%, 0%, 23.1%)
CIE-LABlab(41.12, 51.73, -59.30)
CIE-LCHlch(41.12, 78.70, 311.10°)
OKLaboklab(51.51% 0.0993 -0.1689)
OKLCHoklch(51.51% 0.196 300.5)
XYZxyz(20.1069, 11.9372, 53.4586)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40C4 #88C440
analogous
#4046C4 #7C40C4 #BE40C4
triadic
#7C40C4 #C47C40 #40C47C
tetradic
#7C40C4 #C44046 #88C440 #40C4BE
square
#7C40C4 #C44046 #88C440 #40C4BE
split-complementary
#7C40C4 #C4BE40 #46C440
monochromatic
#412069 #5F2F98 #7C40C4 #9C6FD2 #BC9EE1

Accessibility & contrast

On white

6.20
#7C40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#7C40C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40C4
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40C4#FFFFFF#000000##FFFFFF
##7C40C41.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C8
Deuteranopia (green-blind)
#0060C1
Tritanopia (blue-blind)
#6C5F7D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7c40c4;
/* rgb */ color: rgb(124, 64, 196);
/* oklch */ color: oklch(51.5% 0.196 300.5);
Tailwind
colors: {
  custom: {
    50: '#a779d7',
    500: '#7c40c4',
    950: '#000000',
  },
}
SCSS
$custom: #7c40c4;
$custom-light: #a779d7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40c4",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 267.273,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.51508,
    "c": 0.19592,
    "h": 300.5
  },
  "luminance": 0.11937
}

Semantic roles & 50–950 ramp

primary
#7C40C4
secondary
#B3CD93
accent
#DC4C9A
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7C40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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