#7E40CF#7E40CF

#7E40CF is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.208 H 298.8°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#7E40CF
RGBrgb(126, 64, 207)
HSLhsl(266, 60%, 53%)
HSVhsv(266, 69%, 81%)
CMYKcmyk(39.1%, 69.1%, 0%, 18.8%)
CIE-LABlab(42.17, 54.87, -63.97)
CIE-LCHlch(42.17, 84.27, 310.62°)
OKLaboklab(52.57% 0.1005 -0.1825)
OKLCHoklch(52.57% 0.208 298.8)
XYZxyz(21.6972, 12.6071, 60.3097)
Luminance0.1261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40CF #91CF40
analogous
#4049CF #7E40CF #C640CF
triadic
#7E40CF #CF7E40 #40CF7E
tetradic
#7E40CF #CF4049 #91CF40 #40CFC6
square
#7E40CF #CF4049 #91CF40 #40CFC6
split-complementary
#7E40CF #CFC640 #49CF40
monochromatic
#441E77 #612AA8 #7E40CF #9F71DB #C0A2E8

Accessibility & contrast

On white

5.96
#7E40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7E40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40CF
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40CF#FFFFFF#000000##FFFFFF
##7E40CF1.005.963.525.96
#FFFFFF5.961.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D3
Deuteranopia (green-blind)
#0062CC
Tritanopia (blue-blind)
#6B6383
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e40cf;
/* rgb */ color: rgb(126, 64, 207);
/* oklch */ color: oklch(52.6% 0.208 298.8);
Tailwind
colors: {
  custom: {
    50: '#aa79df',
    500: '#7e40cf',
    950: '#000000',
  },
}
SCSS
$custom: #7e40cf;
$custom-light: #aa79df;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40cf",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 266.014,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.52566,
    "c": 0.20835,
    "h": 298.8
  },
  "luminance": 0.12607
}

Semantic roles & 50–950 ramp

primary
#7E40CF
secondary
#B9D497
accent
#E3459E
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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