#6B40BF#6B40BF

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

Color values

HEX#6B40BF
RGBrgb(107, 64, 191)
HSLhsl(260, 50%, 50%)
HSVhsv(260, 66%, 75%)
CMYKcmyk(44%, 66.5%, 0%, 25.1%)
CIE-LABlab(38.82, 47.06, -60.20)
CIE-LCHlch(38.82, 76.42, 308.02°)
OKLaboklab(49.31% 0.0764 -0.1721)
OKLCHoklch(49.31% 0.188 293.9)
XYZxyz(17.2982, 10.5537, 50.4058)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40BF #94BF40
analogous
#4054BF #6B40BF #AB40BF
triadic
#6B40BF #BF6B40 #40BF6B
tetradic
#6B40BF #BF4054 #94BF40 #40BFAB
square
#6B40BF #BF4054 #94BF40 #40BFAB
split-complementary
#6B40BF #BFAB40 #54BF40
monochromatic
#382163 #513191 #6B40BF #8F6ECE #B29CDE

Accessibility & contrast

On white

6.75
#6B40BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6B40BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40BF
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40BF#FFFFFF#000000##FFFFFF
##6B40BF1.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC3
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#535E7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6b40bf;
/* rgb */ color: rgb(107, 64, 191);
/* oklch */ color: oklch(49.3% 0.188 293.9);
Tailwind
colors: {
  custom: {
    50: '#9c78d3',
    500: '#6b40bf',
    950: '#000000',
  },
}
SCSS
$custom: #6b40bf;
$custom-light: #9c78d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40bf",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 260.315,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49305,
    "c": 0.18828,
    "h": 293.9
  },
  "luminance": 0.10554
}

Semantic roles & 50–950 ramp

primary
#6B40BF
secondary
#B7CA91
accent
#D94EAA
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6B40BF

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

Preview Lab → · Contrast checker → · Palette generator →

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