#6D40BF#6D40BF

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

Color values

HEX#6D40BF
RGBrgb(109, 64, 191)
HSLhsl(261, 50%, 50%)
HSVhsv(261, 66%, 75%)
CMYKcmyk(42.9%, 66.5%, 0%, 25.1%)
CIE-LABlab(39.03, 47.45, -59.84)
CIE-LCHlch(39.03, 76.37, 308.41°)
OKLaboklab(49.51% 0.0791 -0.171)
OKLCHoklch(49.51% 0.188 294.8)
XYZxyz(17.5415, 10.6792, 50.4172)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40BF #92BF40
analogous
#4052BF #6D40BF #AD40BF
triadic
#6D40BF #BF6D40 #40BF6D
tetradic
#6D40BF #BF4052 #92BF40 #40BFAD
square
#6D40BF #BF4052 #92BF40 #40BFAD
split-complementary
#6D40BF #BFAD40 #52BF40
monochromatic
#392163 #533191 #6D40BF #906ECE #B39CDE

Accessibility & contrast

On white

6.70
#6D40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#6D40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40BF
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40BF#FFFFFF#000000##FFFFFF
##6D40BF1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d40bf;
/* rgb */ color: rgb(109, 64, 191);
/* oklch */ color: oklch(49.5% 0.188 294.8);
Tailwind
colors: {
  custom: {
    50: '#9d78d3',
    500: '#6d40bf',
    950: '#000000',
  },
}
SCSS
$custom: #6d40bf;
$custom-light: #9d78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40bf",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 261.26,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.4951,
    "c": 0.18841,
    "h": 294.8
  },
  "luminance": 0.1068
}

Semantic roles & 50–950 ramp

primary
#6D40BF
secondary
#B6CA91
accent
#D94EA8
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6D40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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