#6E40BA#6E40BA

#6E40BA is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.2% C 0.183 H 296.4°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#6E40BA
RGBrgb(110, 64, 186)
HSLhsl(263, 49%, 49%)
HSVhsv(263, 66%, 73%)
CMYKcmyk(40.9%, 65.6%, 0%, 27.1%)
CIE-LABlab(38.77, 46.31, -57.33)
CIE-LCHlch(38.77, 73.70, 308.93°)
OKLaboklab(49.23% 0.0811 -0.1636)
OKLCHoklch(49.23% 0.183 296.4)
XYZxyz(17.1244, 10.5266, 47.5745)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40BA #8CBA40
analogous
#404FBA #6E40BA #AB40BA
triadic
#6E40BA #BA6E40 #40BA6E
tetradic
#6E40BA #BA404F #8CBA40 #40BAAB
square
#6E40BA #BA404F #8CBA40 #40BAAB
split-complementary
#6E40BA #BAAB40 #4FBA40
monochromatic
#38215F #53308C #6E40BA #906BCC #B299DC

Accessibility & contrast

On white

6.76
#6E40BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6E40BA
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40BA#FFFFFF#000000##FFFFFF
##6E40BA1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#005AB7
Tritanopia (blue-blind)
#5B5C77
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6e40ba;
/* rgb */ color: rgb(110, 64, 186);
/* oklch */ color: oklch(49.2% 0.183 296.4);
Tailwind
colors: {
  custom: {
    50: '#9d78d0',
    500: '#6e40ba',
    950: '#000000',
  },
}
SCSS
$custom: #6e40ba;
$custom-light: #9d78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40ba",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 262.623,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.49229,
    "c": 0.18259,
    "h": 296.4
  },
  "luminance": 0.10527
}

Semantic roles & 50–950 ramp

primary
#6E40BA
secondary
#B2C88E
accent
#D84FA5
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6E40BA

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

Preview Lab → · Contrast checker → · Palette generator →

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