#6C40BB#6C40BB

#6C40BB is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.1% C 0.184 H 295.2°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#6C40BB
RGBrgb(108, 64, 187)
HSLhsl(261, 49%, 49%)
HSVhsv(261, 66%, 73%)
CMYKcmyk(42.2%, 65.8%, 0%, 26.7%)
CIE-LABlab(38.63, 46.18, -58.17)
CIE-LCHlch(38.63, 74.27, 308.45°)
OKLaboklab(49.1% 0.0782 -0.1661)
OKLCHoklch(49.1% 0.184 295.2)
XYZxyz(16.9850, 10.4424, 48.1248)
Luminance0.1044 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40BB #8FBB40
analogous
#4052BB #6C40BB #AA40BB
triadic
#6C40BB #BB6C40 #40BB6C
tetradic
#6C40BB #BB4052 #8FBB40 #40BBAA
square
#6C40BB #BB4052 #8FBB40 #40BBAA
split-complementary
#6C40BB #BBAA40 #52BB40
monochromatic
#372160 #52308D #6C40BB #8E6CCD #B199DC

Accessibility & contrast

On white

6.80
#6C40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6C40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40BB
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40BB#FFFFFF#000000##FFFFFF
##6C40BB1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBF
Deuteranopia (green-blind)
#0059B8
Tritanopia (blue-blind)
#575D78
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6c40bb;
/* rgb */ color: rgb(108, 64, 187);
/* oklch */ color: oklch(49.1% 0.184 295.2);
Tailwind
colors: {
  custom: {
    50: '#9c77d0',
    500: '#6c40bb',
    950: '#000000',
  },
}
SCSS
$custom: #6c40bb;
$custom-light: #9c77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40bb",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 261.463,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.49096,
    "c": 0.1836,
    "h": 295.2
  },
  "luminance": 0.10443
}

Semantic roles & 50–950 ramp

primary
#6C40BB
secondary
#B4C88F
accent
#D94FA7
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6C40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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