#7E40CD#7E40CD

#7E40CD is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.4% C 0.206 H 299.3°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#7E40CD
RGBrgb(126, 64, 205)
HSLhsl(266, 59%, 53%)
HSVhsv(266, 69%, 80%)
CMYKcmyk(38.5%, 68.8%, 0%, 19.6%)
CIE-LABlab(42.02, 54.37, -63.05)
CIE-LCHlch(42.02, 83.26, 310.77°)
OKLaboklab(52.41% 0.1008 -0.1798)
OKLCHoklch(52.41% 0.206 299.3)
XYZxyz(21.4543, 12.5099, 59.0301)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40CD #8FCD40
analogous
#4048CD #7E40CD #C440CD
triadic
#7E40CD #CD7E40 #40CD7E
tetradic
#7E40CD #CD4048 #8FCD40 #40CDC4
square
#7E40CD #CD4048 #8FCD40 #40CDC4
split-complementary
#7E40CD #CDC440 #48CD40
monochromatic
#441E74 #612BA5 #7E40CD #9F71DA #C0A1E6

Accessibility & contrast

On white

6.00
#7E40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#7E40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E40CD
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E40CD#FFFFFF#000000##FFFFFF
##7E40CD1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D1
Deuteranopia (green-blind)
#0062CA
Tritanopia (blue-blind)
#6C6282
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e40cd;
/* rgb */ color: rgb(126, 64, 205);
/* oklch */ color: oklch(52.4% 0.206 299.3);
Tailwind
colors: {
  custom: {
    50: '#a979dd',
    500: '#7e40cd',
    950: '#000000',
  },
}
SCSS
$custom: #7e40cd;
$custom-light: #a979dd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40cd",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 266.383,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.52412,
    "c": 0.20616,
    "h": 299.3
  },
  "luminance": 0.1251
}

Semantic roles & 50–950 ramp

primary
#7E40CD
secondary
#B8D396
accent
#E2469D
background
#FAF7FD
surface
#F5EEFB
border
#CFC9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #7E40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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