#6B40D6#6B40D6

#6B40D6 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.2% C 0.215 H 289.7°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#6B40D6
RGBrgb(107, 64, 214)
HSLhsl(257, 65%, 55%)
HSVhsv(257, 70%, 84%)
CMYKcmyk(50%, 70.1%, 0%, 16.1%)
CIE-LABlab(40.65, 53.37, -70.56)
CIE-LCHlch(40.65, 88.47, 307.10°)
OKLaboklab(51.18% 0.0726 -0.2025)
OKLCHoklch(51.18% 0.215 289.7)
XYZxyz(20.0309, 11.6468, 64.7979)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40D6 #ABD640
analogous
#4060D6 #6B40D6 #B640D6
triadic
#6B40D6 #D66B40 #40D66B
tetradic
#6B40D6 #D64060 #ABD640 #40D6B6
square
#6B40D6 #D64060 #ABD640 #40D6B6
split-complementary
#6B40D6 #D6B640 #60D640
monochromatic
#381B80 #4E26B2 #6B40D6 #9272E1 #B9A5EC

Accessibility & contrast

On white

6.31
#6B40D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6B40D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40D6
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40D6#FFFFFF#000000##FFFFFF
##6B40D61.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063DA
Deuteranopia (green-blind)
#005CD3
Tritanopia (blue-blind)
#466787
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6b40d6;
/* rgb */ color: rgb(107, 64, 214);
/* oklch */ color: oklch(51.2% 0.215 289.7);
Tailwind
colors: {
  custom: {
    50: '#9f78e4',
    500: '#6b40d6',
    950: '#000000',
  },
}
SCSS
$custom: #6b40d6;
$custom-light: #9f78e4;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40d6",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 214
  },
  "hsl": {
    "h": 257.2,
    "s": 64.655,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51184,
    "c": 0.21516,
    "h": 289.7
  },
  "luminance": 0.11648
}

Semantic roles & 50–950 ramp

primary
#6B40D6
secondary
#C6D999
accent
#E840B8
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6B40D6

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

Preview Lab → · Contrast checker → · Palette generator →

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