#7C40C0#7C40C0

#7C40C0 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.2% C 0.191 H 301.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#7C40C0
RGBrgb(124, 64, 192)
HSLhsl(268, 50%, 50%)
HSVhsv(268, 67%, 75%)
CMYKcmyk(35.4%, 66.7%, 0%, 24.7%)
CIE-LABlab(40.83, 50.74, -57.44)
CIE-LCHlch(40.83, 76.64, 311.46°)
OKLaboklab(51.21% 0.0998 -0.1634)
OKLCHoklch(51.21% 0.191 301.4)
XYZxyz(19.6577, 11.7576, 51.0927)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40C0 #84C040
analogous
#4044C0 #7C40C0 #BC40C0
triadic
#7C40C0 #C07C40 #40C07C
tetradic
#7C40C0 #C04044 #84C040 #40C0BC
square
#7C40C0 #C04044 #84C040 #40C0BC
split-complementary
#7C40C0 #C0BC40 #44C040
monochromatic
#412164 #5E3092 #7C40C0 #9C6ECF #BB9CDE

Accessibility & contrast

On white

6.27
#7C40C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#7C40C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40C0
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40C0#FFFFFF#000000##FFFFFF
##7C40C01.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC4
Deuteranopia (green-blind)
#0060BD
Tritanopia (blue-blind)
#6E5D7B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #7c40c0;
/* rgb */ color: rgb(124, 64, 192);
/* oklch */ color: oklch(51.2% 0.191 301.4);
Tailwind
colors: {
  custom: {
    50: '#a779d4',
    500: '#7c40c0',
    950: '#000000',
  },
}
SCSS
$custom: #7c40c0;
$custom-light: #a779d4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40c0",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 268.125,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.5121,
    "c": 0.19146,
    "h": 301.4
  },
  "luminance": 0.11758
}

Semantic roles & 50–950 ramp

primary
#7C40C0
secondary
#B0CB91
accent
#DA4E98
background
#FAF7FD
surface
#F4EEFA
border
#CEC9D3
text
#100914
muted
#7F7B83

Preview Lab

Preview with #7C40C0

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

Preview Lab → · Contrast checker → · Palette generator →

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