#7C40C3#7C40C3

#7C40C3 is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.4% C 0.195 H 300.7°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#7C40C3
RGBrgb(124, 64, 195)
HSLhsl(267, 52%, 51%)
HSVhsv(267, 67%, 76%)
CMYKcmyk(36.4%, 67.2%, 0%, 23.5%)
CIE-LABlab(41.04, 51.48, -58.84)
CIE-LCHlch(41.04, 78.18, 311.19°)
OKLaboklab(51.43% 0.0994 -0.1675)
OKLCHoklch(51.43% 0.195 300.7)
XYZxyz(19.9935, 11.8919, 52.8612)
Luminance0.1189 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40C3 #87C340
analogous
#4045C3 #7C40C3 #BD40C3
triadic
#7C40C3 #C37C40 #40C37C
tetradic
#7C40C3 #C34045 #87C340 #40C3BD
square
#7C40C3 #C34045 #87C340 #40C3BD
split-complementary
#7C40C3 #C3BD40 #45C340
monochromatic
#412168 #5F2F97 #7C40C3 #9C6FD2 #BC9DE0

Accessibility & contrast

On white

6.22
#7C40C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#7C40C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40C3
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40C3#FFFFFF#000000##FFFFFF
##7C40C31.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C7
Deuteranopia (green-blind)
#0060C0
Tritanopia (blue-blind)
#6D5E7C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #7c40c3;
/* rgb */ color: rgb(124, 64, 195);
/* oklch */ color: oklch(51.4% 0.195 300.7);
Tailwind
colors: {
  custom: {
    50: '#a779d6',
    500: '#7c40c3',
    950: '#000000',
  },
}
SCSS
$custom: #7c40c3;
$custom-light: #a779d6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40c3",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 195
  },
  "hsl": {
    "h": 267.481,
    "s": 52.191,
    "l": 50.784
  },
  "oklch": {
    "l": 0.51433,
    "c": 0.19481,
    "h": 300.7
  },
  "luminance": 0.11892
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C40C3

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

Preview Lab → · Contrast checker → · Palette generator →

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