#6E40D5#6E40D5

#6E40D5 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.4% C 0.214 H 291.1°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#6E40D5
RGBrgb(110, 64, 213)
HSLhsl(259, 64%, 54%)
HSVhsv(259, 70%, 84%)
CMYKcmyk(48.4%, 70%, 0%, 16.5%)
CIE-LABlab(40.87, 53.59, -69.60)
CIE-LCHlch(40.87, 87.84, 307.59°)
OKLaboklab(51.39% 0.077 -0.1996)
OKLCHoklch(51.39% 0.214 291.1)
XYZxyz(20.2706, 11.7851, 64.1446)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40D5 #A7D540
analogous
#405DD5 #6E40D5 #B840D5
triadic
#6E40D5 #D56E40 #40D56E
tetradic
#6E40D5 #D5405D #A7D540 #40D5B8
square
#6E40D5 #D5405D #A7D540 #40D5B8
split-complementary
#6E40D5 #D5B840 #5DD540
monochromatic
#3A1C7F #5227B1 #6E40D5 #9472E0 #BAA4EB

Accessibility & contrast

On white

6.26
#6E40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6E40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40D5
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40D5#FFFFFF#000000##FFFFFF
##6E40D51.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#4C6686
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6e40d5;
/* rgb */ color: rgb(110, 64, 213);
/* oklch */ color: oklch(51.4% 0.214 291.1);
Tailwind
colors: {
  custom: {
    50: '#a078e3',
    500: '#6e40d5',
    950: '#000000',
  },
}
SCSS
$custom: #6e40d5;
$custom-light: #a078e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40d5",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 258.523,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51389,
    "c": 0.21399,
    "h": 291.1
  },
  "luminance": 0.11786
}

Semantic roles & 50–950 ramp

primary
#6E40D5
secondary
#C4D899
accent
#E741B4
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6E40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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