#7C40CF#7C40CF

#7C40CF is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.3% C 0.208 H 298.0°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#7C40CF
RGBrgb(124, 64, 207)
HSLhsl(265, 60%, 53%)
HSVhsv(265, 69%, 81%)
CMYKcmyk(40.1%, 69.1%, 0%, 18.8%)
CIE-LABlab(41.93, 54.49, -64.35)
CIE-LCHlch(41.93, 84.33, 310.26°)
OKLaboklab(52.35% 0.0977 -0.1837)
OKLCHoklch(52.35% 0.208 298)
XYZxyz(21.4052, 12.4565, 60.2960)
Luminance0.1246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C40CF #93CF40
analogous
#404BCF #7C40CF #C440CF
triadic
#7C40CF #CF7C40 #40CF7C
tetradic
#7C40CF #CF404B #93CF40 #40CFC4
square
#7C40CF #CF404B #93CF40 #40CFC4
split-complementary
#7C40CF #CFC440 #4BCF40
monochromatic
#431E77 #5F2AA8 #7C40CF #9E71DB #BFA2E8

Accessibility & contrast

On white

6.01
#7C40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#7C40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C40CF
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C40CF#FFFFFF#000000##FFFFFF
##7C40CF1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#0061CC
Tritanopia (blue-blind)
#686383
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c40cf;
/* rgb */ color: rgb(124, 64, 207);
/* oklch */ color: oklch(52.3% 0.208 298.0);
Tailwind
colors: {
  custom: {
    50: '#a879df',
    500: '#7c40cf',
    950: '#000000',
  },
}
SCSS
$custom: #7c40cf;
$custom-light: #a879df;
$custom-dark: #000000;
JSON
{
  "hex": "#7c40cf",
  "rgb": {
    "r": 124,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 265.175,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52348,
    "c": 0.2081,
    "h": 298
  },
  "luminance": 0.12457
}

Semantic roles & 50–950 ramp

primary
#7C40CF
secondary
#BAD497
accent
#E345A1
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7C40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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