#6E40BF#6E40BF

#6E40BF is a mid, vivid violet. Relative luminance 0.107; OKLCH L 49.6% C 0.188 H 295.3°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#6E40BF
RGBrgb(110, 64, 191)
HSLhsl(262, 50%, 50%)
HSVhsv(262, 66%, 75%)
CMYKcmyk(42.4%, 66.5%, 0%, 25.1%)
CIE-LABlab(39.14, 47.65, -59.66)
CIE-LCHlch(39.14, 76.35, 308.62°)
OKLaboklab(49.61% 0.0805 -0.1704)
OKLCHoklch(49.61% 0.188 295.3)
XYZxyz(17.6653, 10.7430, 50.4230)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40BF #91BF40
analogous
#4052BF #6E40BF #AD40BF
triadic
#6E40BF #BF6E40 #40BF6E
tetradic
#6E40BF #BF4052 #91BF40 #40BFAD
square
#6E40BF #BF4052 #91BF40 #40BFAD
split-complementary
#6E40BF #BFAD40 #52BF40
monochromatic
#392163 #543191 #6E40BF #916ECE #B49CDE

Accessibility & contrast

On white

6.67
#6E40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#6E40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40BF
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40BF#FFFFFF#000000##FFFFFF
##6E40BF1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#585E7A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6e40bf;
/* rgb */ color: rgb(110, 64, 191);
/* oklch */ color: oklch(49.6% 0.188 295.3);
Tailwind
colors: {
  custom: {
    50: '#9e78d3',
    500: '#6e40bf',
    950: '#000000',
  },
}
SCSS
$custom: #6e40bf;
$custom-light: #9e78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40bf",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 261.732,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49614,
    "c": 0.18848,
    "h": 295.3
  },
  "luminance": 0.10743
}

Semantic roles & 50–950 ramp

primary
#6E40BF
secondary
#B5CA91
accent
#D94EA7
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6E40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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