#6B40BB#6B40BB

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

Color values

HEX#6B40BB
RGBrgb(107, 64, 187)
HSLhsl(261, 49%, 49%)
HSVhsv(261, 66%, 73%)
CMYKcmyk(42.8%, 65.8%, 0%, 26.7%)
CIE-LABlab(38.52, 45.98, -58.35)
CIE-LCHlch(38.52, 74.29, 308.24°)
OKLaboklab(48.99% 0.0769 -0.1667)
OKLCHoklch(48.99% 0.184 294.8)
XYZxyz(16.8640, 10.3800, 48.1191)
Luminance0.1038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40BB #90BB40
analogous
#4052BB #6B40BB #A940BB
triadic
#6B40BB #BB6B40 #40BB6B
tetradic
#6B40BB #BB4052 #90BB40 #40BBA9
square
#6B40BB #BB4052 #90BB40 #40BBA9
split-complementary
#6B40BB #BBA940 #52BB40
monochromatic
#372160 #51308D #6B40BB #8E6CCD #B199DC

Accessibility & contrast

On white

6.83
#6B40BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6B40BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40BB
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40BB#FFFFFF#000000##FFFFFF
##6B40BB1.006.833.086.83
#FFFFFF6.831.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6b40bb;
/* rgb */ color: rgb(107, 64, 187);
/* oklch */ color: oklch(49.0% 0.184 294.8);
Tailwind
colors: {
  custom: {
    50: '#9c77d0',
    500: '#6b40bb',
    950: '#000000',
  },
}
SCSS
$custom: #6b40bb;
$custom-light: #9c77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40bb",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 260.976,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48992,
    "c": 0.18353,
    "h": 294.8
  },
  "luminance": 0.1038
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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