#6B40DC#6B40DC

#6B40DC is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.7% C 0.222 H 288.8°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#6B40DC
RGBrgb(107, 64, 220)
HSLhsl(257, 69%, 56%)
HSVhsv(257, 71%, 86%)
CMYKcmyk(51.4%, 70.9%, 0%, 13.7%)
CIE-LABlab(41.15, 55.02, -73.18)
CIE-LCHlch(41.15, 91.56, 306.94°)
OKLaboklab(51.7% 0.0714 -0.2102)
OKLCHoklch(51.7% 0.222 288.8)
XYZxyz(20.8113, 11.9589, 68.9080)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40DC #B1DC40
analogous
#4063DC #6B40DC #B940DC
triadic
#6B40DC #DC6B40 #40DC6B
tetradic
#6B40DC #DC4063 #B1DC40 #40DCB9
square
#6B40DC #DC4063 #B1DC40 #40DCB9
split-complementary
#6B40DC #DCB940 #63DC40
monochromatic
#381989 #4D23BC #6B40DC #9374E5 #BBA7EF

Accessibility & contrast

On white

6.19
#6B40DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#6B40DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40DC
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40DC#FFFFFF#000000##FFFFFF
##6B40DC1.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E1
Deuteranopia (green-blind)
#005DD9
Tritanopia (blue-blind)
#41698A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6b40dc;
/* rgb */ color: rgb(107, 64, 220);
/* oklch */ color: oklch(51.7% 0.222 288.8);
Tailwind
colors: {
  custom: {
    50: '#a079e8',
    500: '#6b40dc',
    950: '#000000',
  },
}
SCSS
$custom: #6b40dc;
$custom-light: #a079e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40dc",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 256.538,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51695,
    "c": 0.22202,
    "h": 288.8
  },
  "luminance": 0.1196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6B40DC

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

Preview Lab → · Contrast checker → · Palette generator →

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