#7C40C7#7C40C7

#7C40C7 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.7% C 0.199 H 299.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#7C40C7
RGBrgb(124, 64, 199)
HSLhsl(267, 55%, 52%)
HSVhsv(267, 68%, 78%)
CMYKcmyk(37.7%, 67.8%, 0%, 22%)
CIE-LABlab(41.34, 52.48, -60.69)
CIE-LCHlch(41.34, 80.24, 310.85°)
OKLaboklab(51.73% 0.0989 -0.173)
OKLCHoklch(51.73% 0.199 299.8)
XYZxyz(20.4518, 12.0752, 55.2750)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40C7 #8BC740
analogous
#4048C7 #7C40C7 #C040C7
triadic
#7C40C7 #C77C40 #40C77C
tetradic
#7C40C7 #C74048 #8BC740 #40C7C0
square
#7C40C7 #C74048 #8BC740 #40C7C0
split-complementary
#7C40C7 #C7C040 #48C740
monochromatic
#42206D #5F2E9C #7C40C7 #9C6FD5 #BD9FE3

Accessibility & contrast

On white

6.15
#7C40C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#7C40C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40C7
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40C7#FFFFFF#000000##FFFFFF
##7C40C71.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CB
Deuteranopia (green-blind)
#0060C4
Tritanopia (blue-blind)
#6B607E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7c40c7;
/* rgb */ color: rgb(124, 64, 199);
/* oklch */ color: oklch(51.7% 0.199 299.8);
Tailwind
colors: {
  custom: {
    50: '#a879d9',
    500: '#7c40c7',
    950: '#000000',
  },
}
SCSS
$custom: #7c40c7;
$custom-light: #a879d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40c7",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 266.667,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.51734,
    "c": 0.19926,
    "h": 299.8
  },
  "luminance": 0.12075
}

Semantic roles & 50–950 ramp

primary
#7C40C7
secondary
#B5CF94
accent
#DE4A9C
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C40C7

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

Preview Lab → · Contrast checker → · Palette generator →

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