#7E40CA#7E40CA

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

Color values

HEX#7E40CA
RGBrgb(126, 64, 202)
HSLhsl(267, 57%, 52%)
HSVhsv(267, 68%, 79%)
CMYKcmyk(37.6%, 68.3%, 0%, 20.8%)
CIE-LABlab(41.79, 53.62, -61.68)
CIE-LCHlch(41.79, 81.73, 311.00°)
OKLaboklab(52.18% 0.1012 -0.1758)
OKLCHoklch(52.18% 0.203 299.9)
XYZxyz(21.0956, 12.3665, 57.1412)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E40CA #8CCA40
analogous
#4047CA #7E40CA #C340CA
triadic
#7E40CA #CA7E40 #40CA7E
tetradic
#7E40CA #CA4047 #8CCA40 #40CAC3
square
#7E40CA #CA4047 #8CCA40 #40CAC3
split-complementary
#7E40CA #CAC340 #47CA40
monochromatic
#441F70 #612CA0 #7E40CA #9E70D7 #BFA0E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E40CA#FFFFFF#000000##FFFFFF
##7E40CA1.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)
#0062CE
Deuteranopia (green-blind)
#0062C7
Tritanopia (blue-blind)
#6D6180
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7e40ca;
/* rgb */ color: rgb(126, 64, 202);
/* oklch */ color: oklch(52.2% 0.203 299.9);
Tailwind
colors: {
  custom: {
    50: '#a979db',
    500: '#7e40ca',
    950: '#000000',
  },
}
SCSS
$custom: #7e40ca;
$custom-light: #a979db;
$custom-dark: #000000;
JSON
{
  "hex": "#7e40ca",
  "rgb": {
    "r": 126,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 266.957,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.52183,
    "c": 0.20287,
    "h": 299.9
  },
  "luminance": 0.12367
}

Semantic roles & 50–950 ramp

primary
#7E40CA
secondary
#B6D195
accent
#E0489C
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #7E40CA

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

Preview Lab → · Contrast checker → · Palette generator →

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