#7C40CD#7C40CD

#7C40CD is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.206 H 298.4°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7C40CD
RGBrgb(124, 64, 205)
HSLhsl(266, 59%, 53%)
HSVhsv(266, 69%, 80%)
CMYKcmyk(39.5%, 68.8%, 0%, 19.6%)
CIE-LABlab(41.78, 53.99, -63.44)
CIE-LCHlch(41.78, 83.31, 310.40°)
OKLaboklab(52.19% 0.098 -0.1811)
OKLCHoklch(52.19% 0.206 298.4)
XYZxyz(21.1622, 12.3594, 59.0164)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40CD #91CD40
analogous
#404ACD #7C40CD #C240CD
triadic
#7C40CD #CD7C40 #40CD7C
tetradic
#7C40CD #CD404A #91CD40 #40CDC2
square
#7C40CD #CD404A #91CD40 #40CDC2
split-complementary
#7C40CD #CDC240 #4ACD40
monochromatic
#431E74 #5F2BA5 #7C40CD #9D71DA #BFA1E6

Accessibility & contrast

On white

6.05
#7C40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7C40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40CD
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40CD#FFFFFF#000000##FFFFFF
##7C40CD1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0061CA
Tritanopia (blue-blind)
#696282
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c40cd;
/* rgb */ color: rgb(124, 64, 205);
/* oklch */ color: oklch(52.2% 0.206 298.4);
Tailwind
colors: {
  custom: {
    50: '#a879dd',
    500: '#7c40cd',
    950: '#000000',
  },
}
SCSS
$custom: #7c40cd;
$custom-light: #a879dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40cd",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 265.532,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52193,
    "c": 0.20589,
    "h": 298.4
  },
  "luminance": 0.1236
}

Semantic roles & 50–950 ramp

primary
#7C40CD
secondary
#B9D396
accent
#E2469F
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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