#6E40BB#6E40BB

#6E40BB is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.184 H 296.2°. Best body text is #FFFFFF at 6.74:1 contrast (WCAG AA passes).

Color values

HEX#6E40BB
RGBrgb(110, 64, 187)
HSLhsl(262, 49%, 49%)
HSVhsv(262, 66%, 73%)
CMYKcmyk(41.2%, 65.8%, 0%, 26.7%)
CIE-LABlab(38.85, 46.58, -57.80)
CIE-LCHlch(38.85, 74.23, 308.87°)
OKLaboklab(49.31% 0.081 -0.1649)
OKLCHoklch(49.31% 0.184 296.2)
XYZxyz(17.2311, 10.5693, 48.1363)
Luminance0.1057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40BB #8DBB40
analogous
#4050BB #6E40BB #AC40BB
triadic
#6E40BB #BB6E40 #40BB6E
tetradic
#6E40BB #BB4050 #8DBB40 #40BBAC
square
#6E40BB #BB4050 #8DBB40 #40BBAC
split-complementary
#6E40BB #BBAC40 #50BB40
monochromatic
#382160 #53308D #6E40BB #906CCD #B299DC

Accessibility & contrast

On white

6.74
#6E40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6E40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40BB
6.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40BB#FFFFFF#000000##FFFFFF
##6E40BB1.006.743.116.74
#FFFFFF6.741.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#5A5D78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6e40bb;
/* rgb */ color: rgb(110, 64, 187);
/* oklch */ color: oklch(49.3% 0.184 296.2);
Tailwind
colors: {
  custom: {
    50: '#9d78d0',
    500: '#6e40bb',
    950: '#000000',
  },
}
SCSS
$custom: #6e40bb;
$custom-light: #9d78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40bb",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 262.439,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49305,
    "c": 0.18376,
    "h": 296.2
  },
  "luminance": 0.1057
}

Semantic roles & 50–950 ramp

primary
#6E40BB
secondary
#B3C88F
accent
#D94FA5
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6E40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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