#6E40D9#6E40D9

#6E40D9 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.219 H 290.4°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#6E40D9
RGBrgb(110, 64, 217)
HSLhsl(258, 67%, 55%)
HSVhsv(258, 71%, 85%)
CMYKcmyk(49.3%, 70.5%, 0%, 14.9%)
CIE-LABlab(41.20, 54.68, -71.36)
CIE-LCHlch(41.20, 89.90, 307.46°)
OKLaboklab(51.73% 0.0763 -0.2048)
OKLCHoklch(51.73% 0.219 290.4)
XYZxyz(20.7846, 11.9907, 66.8515)
Luminance0.1199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40D9 #ABD940
analogous
#405FD9 #6E40D9 #BA40D9
triadic
#6E40D9 #D96E40 #40D96E
tetradic
#6E40D9 #D9405F #ABD940 #40D9BA
square
#6E40D9 #D9405F #ABD940 #40D9BA
split-complementary
#6E40D9 #D9BA40 #5FD940
monochromatic
#3A1A84 #5124B7 #6E40D9 #9573E3 #BCA6ED

Accessibility & contrast

On white

6.18
#6E40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#6E40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40D9
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40D9#FFFFFF#000000##FFFFFF
##6E40D91.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#005ED6
Tritanopia (blue-blind)
#4A6888
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6e40d9;
/* rgb */ color: rgb(110, 64, 217);
/* oklch */ color: oklch(51.7% 0.219 290.4);
Tailwind
colors: {
  custom: {
    50: '#a179e6',
    500: '#6e40d9',
    950: '#000000',
  },
}
SCSS
$custom: #6e40d9;
$custom-light: #a179e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40d9",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 258.039,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51725,
    "c": 0.21854,
    "h": 290.4
  },
  "luminance": 0.11992
}

Semantic roles & 50–950 ramp

primary
#6E40D9
secondary
#C7DA9A
accent
#EA3EB6
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6E40D9

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

Preview Lab → · Contrast checker → · Palette generator →

#6E40D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva