#6E40D4#6E40D4

#6E40D4 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.213 H 291.3°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#6E40D4
RGBrgb(110, 64, 212)
HSLhsl(259, 63%, 54%)
HSVhsv(259, 70%, 83%)
CMYKcmyk(48.1%, 69.8%, 0%, 16.9%)
CIE-LABlab(40.79, 53.32, -69.16)
CIE-LCHlch(40.79, 87.33, 307.63°)
OKLaboklab(51.31% 0.0772 -0.1983)
OKLCHoklch(51.31% 0.213 291.3)
XYZxyz(20.1441, 11.7345, 63.4782)
Luminance0.1173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40D4 #A6D440
analogous
#405CD4 #6E40D4 #B840D4
triadic
#6E40D4 #D46E40 #40D46E
tetradic
#6E40D4 #D4405C #A6D440 #40D4B8
square
#6E40D4 #D4405C #A6D440 #40D4B8
split-complementary
#6E40D4 #D4B840 #5CD440
monochromatic
#3A1C7D #5227AF #6E40D4 #9472DF #BAA4EA

Accessibility & contrast

On white

6.27
#6E40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#6E40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40D4
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40D4#FFFFFF#000000##FFFFFF
##6E40D41.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D8
Deuteranopia (green-blind)
#005DD1
Tritanopia (blue-blind)
#4D6685
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6e40d4;
/* rgb */ color: rgb(110, 64, 212);
/* oklch */ color: oklch(51.3% 0.213 291.3);
Tailwind
colors: {
  custom: {
    50: '#a078e2',
    500: '#6e40d4',
    950: '#000000',
  },
}
SCSS
$custom: #6e40d4;
$custom-light: #a078e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40d4",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 258.649,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51306,
    "c": 0.21284,
    "h": 291.3
  },
  "luminance": 0.11735
}

Semantic roles & 50–950 ramp

primary
#6E40D4
secondary
#C4D798
accent
#E642B3
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6E40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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