#7C40D3#7C40D3

#7C40D3 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.7% C 0.212 H 297.2°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#7C40D3
RGBrgb(124, 64, 211)
HSLhsl(264, 63%, 54%)
HSVhsv(264, 70%, 83%)
CMYKcmyk(41.2%, 69.7%, 0%, 17.3%)
CIE-LABlab(42.24, 55.50, -66.16)
CIE-LCHlch(42.24, 86.36, 309.99°)
OKLaboklab(52.66% 0.097 -0.1891)
OKLCHoklch(52.66% 0.213 297.2)
XYZxyz(21.9004, 12.6546, 62.9041)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40D3 #97D340
analogous
#404ED3 #7C40D3 #C640D3
triadic
#7C40D3 #D37C40 #40D37C
tetradic
#7C40D3 #D3404E #97D340 #40D3C6
square
#7C40D3 #D3404E #97D340 #40D3C6
split-complementary
#7C40D3 #D3C640 #4ED340
monochromatic
#441D7C #5F28AE #7C40D3 #9E72DE #C0A3EA

Accessibility & contrast

On white

5.95
#7C40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#7C40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40D3
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40D3#FFFFFF#000000##FFFFFF
##7C40D31.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#0062D0
Tritanopia (blue-blind)
#666485
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c40d3;
/* rgb */ color: rgb(124, 64, 211);
/* oklch */ color: oklch(52.7% 0.212 297.2);
Tailwind
colors: {
  custom: {
    50: '#a979e1',
    500: '#7c40d3',
    950: '#000000',
  },
}
SCSS
$custom: #7c40d3;
$custom-light: #a979e1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40d3",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 264.49,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.52661,
    "c": 0.2125,
    "h": 297.2
  },
  "luminance": 0.12655
}

Semantic roles & 50–950 ramp

primary
#7C40D3
secondary
#BDD798
accent
#E642A3
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7C40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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