#6B40DB#6B40DB

#6B40DB is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.6% C 0.221 H 288.9°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#6B40DB
RGBrgb(107, 64, 219)
HSLhsl(257, 68%, 55%)
HSVhsv(257, 71%, 86%)
CMYKcmyk(51.1%, 70.8%, 0%, 14.1%)
CIE-LABlab(41.07, 54.75, -72.74)
CIE-LCHlch(41.07, 91.04, 306.97°)
OKLaboklab(51.61% 0.0716 -0.2089)
OKLCHoklch(51.61% 0.221 288.9)
XYZxyz(20.6793, 11.9061, 68.2126)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40DB #B0DB40
analogous
#4062DB #6B40DB #B840DB
triadic
#6B40DB #DB6B40 #40DB6B
tetradic
#6B40DB #DB4062 #B0DB40 #40DBB8
square
#6B40DB #DB4062 #B0DB40 #40DBB8
split-complementary
#6B40DB #DBB840 #62DB40
monochromatic
#381987 #4D23BB #6B40DB #9373E5 #BBA7EE

Accessibility & contrast

On white

6.21
#6B40DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6B40DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40DB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40DB#FFFFFF#000000##FFFFFF
##6B40DB1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E0
Deuteranopia (green-blind)
#005DD8
Tritanopia (blue-blind)
#426989
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6b40db;
/* rgb */ color: rgb(107, 64, 219);
/* oklch */ color: oklch(51.6% 0.221 288.9);
Tailwind
colors: {
  custom: {
    50: '#9f78e7',
    500: '#6b40db',
    950: '#000000',
  },
}
SCSS
$custom: #6b40db;
$custom-light: #9f78e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40db",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 256.645,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51609,
    "c": 0.22088,
    "h": 288.9
  },
  "luminance": 0.11907
}

Semantic roles & 50–950 ramp

primary
#6B40DB
secondary
#CADC9B
accent
#EB3DBB
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6B40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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