#7C40CC#7C40CC

#7C40CC is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.1% C 0.205 H 298.6°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#7C40CC
RGBrgb(124, 64, 204)
HSLhsl(266, 58%, 53%)
HSVhsv(266, 69%, 80%)
CMYKcmyk(39.2%, 68.6%, 0%, 20%)
CIE-LABlab(41.71, 53.74, -62.99)
CIE-LCHlch(41.71, 82.80, 310.47°)
OKLaboklab(52.12% 0.0982 -0.1797)
OKLCHoklch(52.12% 0.205 298.6)
XYZxyz(21.0419, 12.3112, 58.3827)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40CC #90CC40
analogous
#404ACC #7C40CC #C240CC
triadic
#7C40CC #CC7C40 #40CC7C
tetradic
#7C40CC #CC404A #90CC40 #40CCC2
square
#7C40CC #CC404A #90CC40 #40CCC2
split-complementary
#7C40CC #CCC240 #4ACC40
monochromatic
#431F73 #5F2CA3 #7C40CC #9D70D9 #BEA1E6

Accessibility & contrast

On white

6.07
#7C40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#7C40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40CC
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40CC#FFFFFF#000000##FFFFFF
##7C40CC1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#0061C9
Tritanopia (blue-blind)
#696281
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7c40cc;
/* rgb */ color: rgb(124, 64, 204);
/* oklch */ color: oklch(52.1% 0.205 298.6);
Tailwind
colors: {
  custom: {
    50: '#a879dc',
    500: '#7c40cc',
    950: '#000000',
  },
}
SCSS
$custom: #7c40cc;
$custom-light: #a879dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40cc",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 265.714,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.52116,
    "c": 0.20479,
    "h": 298.6
  },
  "luminance": 0.12312
}

Semantic roles & 50–950 ramp

primary
#7C40CC
secondary
#B8D295
accent
#E1479F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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