#6E40BC#6E40BC

#6E40BC is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.4% C 0.185 H 295.9°. Best body text is #FFFFFF at 6.73:1 contrast (WCAG AA passes).

Color values

HEX#6E40BC
RGBrgb(110, 64, 188)
HSLhsl(262, 49%, 49%)
HSVhsv(262, 66%, 74%)
CMYKcmyk(41.5%, 66%, 0%, 26.3%)
CIE-LABlab(38.92, 46.85, -58.26)
CIE-LCHlch(38.92, 74.76, 308.80°)
OKLaboklab(49.38% 0.0809 -0.1663)
OKLCHoklch(49.38% 0.185 295.9)
XYZxyz(17.3385, 10.6123, 48.7021)
Luminance0.1061 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6E40BC #8EBC40
analogous
#4050BC #6E40BC #AC40BC
triadic
#6E40BC #BC6E40 #40BC6E
tetradic
#6E40BC #BC4050 #8EBC40 #40BCAC
square
#6E40BC #BC4050 #8EBC40 #40BCAC
split-complementary
#6E40BC #BCAC40 #50BC40
monochromatic
#392161 #53308E #6E40BC #906CCD #B39ADD

Accessibility & contrast

On white

6.73
#6E40BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#6E40BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6E40BC
6.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6E40BC#FFFFFF#000000##FFFFFF
##6E40BC1.006.733.126.73
#FFFFFF6.731.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#5A5D78
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6e40bc;
/* rgb */ color: rgb(110, 64, 188);
/* oklch */ color: oklch(49.4% 0.185 295.9);
Tailwind
colors: {
  custom: {
    50: '#9e78d1',
    500: '#6e40bc',
    950: '#000000',
  },
}
SCSS
$custom: #6e40bc;
$custom-light: #9e78d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6e40bc",
  "rgb": {
    "r": 110,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 262.258,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.49382,
    "c": 0.18495,
    "h": 295.9
  },
  "luminance": 0.10613
}

Semantic roles & 50–950 ramp

primary
#6E40BC
secondary
#B3C98F
accent
#D94FA6
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6E40BC

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

Preview Lab → · Contrast checker → · Palette generator →

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