#6E40D3#6E40D3

#6E40D3 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.212 H 291.4°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6E40D3
RGBrgb(110, 64, 211)
HSLhsl(259, 63%, 54%)
HSVhsv(259, 70%, 83%)
CMYKcmyk(47.9%, 69.7%, 0%, 17.3%)
CIE-LABlab(40.71, 53.05, -68.72)
CIE-LCHlch(40.71, 86.81, 307.67°)
OKLaboklab(51.22% 0.0774 -0.197)
OKLCHoklch(51.22% 0.212 291.4)
XYZxyz(20.0184, 11.6842, 62.8159)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40D3 #A5D340
analogous
#405CD3 #6E40D3 #B840D3
triadic
#6E40D3 #D36E40 #40D36E
tetradic
#6E40D3 #D3405C #A5D340 #40D3B8
square
#6E40D3 #D3405C #A5D340 #40D3B8
split-complementary
#6E40D3 #D3B840 #5CD340
monochromatic
#3A1D7C #5228AE #6E40D3 #9472DE #BAA3EA

Accessibility & contrast

On white

6.29
#6E40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6E40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40D3
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40D3#FFFFFF#000000##FFFFFF
##6E40D31.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#005DD0
Tritanopia (blue-blind)
#4E6685
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6e40d3;
/* rgb */ color: rgb(110, 64, 211);
/* oklch */ color: oklch(51.2% 0.212 291.4);
Tailwind
colors: {
  custom: {
    50: '#a078e2',
    500: '#6e40d3',
    950: '#000000',
  },
}
SCSS
$custom: #6e40d3;
$custom-light: #a078e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40d3",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 258.776,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51223,
    "c": 0.2117,
    "h": 291.4
  },
  "luminance": 0.11685
}

Semantic roles & 50–950 ramp

primary
#6E40D3
secondary
#C3D798
accent
#E642B2
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #6E40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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