#6D40BB#6D40BB

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

Color values

HEX#6D40BB
RGBrgb(109, 64, 187)
HSLhsl(262, 49%, 49%)
HSVhsv(262, 66%, 73%)
CMYKcmyk(41.7%, 65.8%, 0%, 26.7%)
CIE-LABlab(38.73, 46.38, -57.98)
CIE-LCHlch(38.73, 74.25, 308.66°)
OKLaboklab(49.2% 0.0796 -0.1655)
OKLCHoklch(49.2% 0.184 295.7)
XYZxyz(17.1073, 10.5055, 48.1305)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40BB #8EBB40
analogous
#4051BB #6D40BB #AB40BB
triadic
#6D40BB #BB6D40 #40BB6D
tetradic
#6D40BB #BB4051 #8EBB40 #40BBAB
square
#6D40BB #BB4051 #8EBB40 #40BBAB
split-complementary
#6D40BB #BBAB40 #51BB40
monochromatic
#382160 #52308D #6D40BB #8F6CCD #B299DC

Accessibility & contrast

On white

6.77
#6D40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6D40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40BB
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40BB#FFFFFF#000000##FFFFFF
##6D40BB1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d40bb;
/* rgb */ color: rgb(109, 64, 187);
/* oklch */ color: oklch(49.2% 0.184 295.7);
Tailwind
colors: {
  custom: {
    50: '#9d78d0',
    500: '#6d40bb',
    950: '#000000',
  },
}
SCSS
$custom: #6d40bb;
$custom-light: #9d78d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40bb",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 261.951,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.492,
    "c": 0.18368,
    "h": 295.7
  },
  "luminance": 0.10506
}

Semantic roles & 50–950 ramp

primary
#6D40BB
secondary
#B3C88F
accent
#D94FA6
background
#FAF7FC
surface
#F3EDF9
border
#CDC8D2
text
#0F0914
muted
#7F7B82

Preview Lab

Preview with #6D40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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