#6C40BF#6C40BF

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

Color values

HEX#6C40BF
RGBrgb(108, 64, 191)
HSLhsl(261, 50%, 50%)
HSVhsv(261, 66%, 75%)
CMYKcmyk(43.5%, 66.5%, 0%, 25.1%)
CIE-LABlab(38.93, 47.26, -60.02)
CIE-LCHlch(38.93, 76.39, 308.22°)
OKLaboklab(49.41% 0.0778 -0.1715)
OKLCHoklch(49.41% 0.188 294.4)
XYZxyz(17.4192, 10.6161, 50.4114)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40BF #93BF40
analogous
#4054BF #6C40BF #AB40BF
triadic
#6C40BF #BF6C40 #40BF6C
tetradic
#6C40BF #BF4054 #93BF40 #40BFAB
square
#6C40BF #BF4054 #93BF40 #40BFAB
split-complementary
#6C40BF #BFAB40 #54BF40
monochromatic
#382163 #523191 #6C40BF #8F6ECE #B39CDE

Accessibility & contrast

On white

6.72
#6C40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6C40BF
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40BF#FFFFFF#000000##FFFFFF
##6C40BF1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c40bf;
/* rgb */ color: rgb(108, 64, 191);
/* oklch */ color: oklch(49.4% 0.188 294.4);
Tailwind
colors: {
  custom: {
    50: '#9d78d3',
    500: '#6c40bf',
    950: '#000000',
  },
}
SCSS
$custom: #6c40bf;
$custom-light: #9d78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40bf",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 260.787,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49407,
    "c": 0.18835,
    "h": 294.4
  },
  "luminance": 0.10617
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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