#6D40D9#6D40D9

#6D40D9 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.6% C 0.219 H 290.0°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).

Color values

HEX#6D40D9
RGBrgb(109, 64, 217)
HSLhsl(258, 67%, 55%)
HSVhsv(258, 71%, 85%)
CMYKcmyk(49.8%, 70.5%, 0%, 14.9%)
CIE-LABlab(41.10, 54.52, -71.53)
CIE-LCHlch(41.10, 89.94, 307.31°)
OKLaboklab(51.63% 0.0749 -0.2053)
OKLCHoklch(51.63% 0.219 290)
XYZxyz(20.6609, 11.9269, 66.8457)
Luminance0.1193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40D9 #ACD940
analogous
#4060D9 #6D40D9 #B940D9
triadic
#6D40D9 #D96D40 #40D96D
tetradic
#6D40D9 #D94060 #ACD940 #40D9B9
square
#6D40D9 #D94060 #ACD940 #40D9B9
split-complementary
#6D40D9 #D9B940 #60D940
monochromatic
#391A84 #5024B7 #6D40D9 #9473E3 #BBA6ED

Accessibility & contrast

On white

6.20
#6D40D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#6D40D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40D9
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40D9#FFFFFF#000000##FFFFFF
##6D40D91.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DE
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#486888
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6d40d9;
/* rgb */ color: rgb(109, 64, 217);
/* oklch */ color: oklch(51.6% 0.219 290.0);
Tailwind
colors: {
  custom: {
    50: '#a079e6',
    500: '#6d40d9',
    950: '#000000',
  },
}
SCSS
$custom: #6d40d9;
$custom-light: #a079e6;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40d9",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 217
  },
  "hsl": {
    "h": 257.647,
    "s": 66.812,
    "l": 55.098
  },
  "oklch": {
    "l": 0.51629,
    "c": 0.21855,
    "h": 290
  },
  "luminance": 0.11928
}

Semantic roles & 50–950 ramp

primary
#6D40D9
secondary
#C8DA9A
accent
#EA3EB7
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D40D9

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

Preview Lab → · Contrast checker → · Palette generator →

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