#7C40D5#7C40D5

#7C40D5 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.215 H 296.8°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#7C40D5
RGBrgb(124, 64, 213)
HSLhsl(264, 64%, 54%)
HSVhsv(264, 70%, 84%)
CMYKcmyk(41.8%, 70%, 0%, 16.5%)
CIE-LABlab(42.39, 56.01, -67.06)
CIE-LCHlch(42.39, 87.38, 309.87°)
OKLaboklab(52.82% 0.0967 -0.1917)
OKLCHoklch(52.82% 0.215 296.8)
XYZxyz(22.1527, 12.7555, 64.2328)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40D5 #99D540
analogous
#404FD5 #7C40D5 #C640D5
triadic
#7C40D5 #D57C40 #40D57C
tetradic
#7C40D5 #D5404F #99D540 #40D5C6
square
#7C40D5 #D5404F #99D540 #40D5C6
split-complementary
#7C40D5 #D5C640 #4FD540
monochromatic
#441C7F #5E27B1 #7C40D5 #9E72E0 #C1A4EB

Accessibility & contrast

On white

5.91
#7C40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7C40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40D5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40D5#FFFFFF#000000##FFFFFF
##7C40D51.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D9
Deuteranopia (green-blind)
#0062D2
Tritanopia (blue-blind)
#656586
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c40d5;
/* rgb */ color: rgb(124, 64, 213);
/* oklch */ color: oklch(52.8% 0.215 296.8);
Tailwind
colors: {
  custom: {
    50: '#a979e3',
    500: '#7c40d5',
    950: '#000000',
  },
}
SCSS
$custom: #7c40d5;
$custom-light: #a979e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40d5",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 264.161,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.52819,
    "c": 0.21469,
    "h": 296.8
  },
  "luminance": 0.12756
}

Semantic roles & 50–950 ramp

primary
#7C40D5
secondary
#BFD899
accent
#E741A4
background
#FAF7FE
surface
#F5EEFC
border
#CFC9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7C40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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