#6B40DF#6B40DF

#6B40DF is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.0% C 0.225 H 288.3°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#6B40DF
RGBrgb(107, 64, 223)
HSLhsl(256, 71%, 56%)
HSVhsv(256, 71%, 87%)
CMYKcmyk(52%, 71.3%, 0%, 12.5%)
CIE-LABlab(41.41, 55.85, -74.47)
CIE-LCHlch(41.41, 93.09, 306.87°)
OKLaboklab(51.95% 0.0708 -0.214)
OKLCHoklch(51.95% 0.225 288.3)
XYZxyz(21.2122, 12.1193, 71.0193)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6B40DF #B4DF40
analogous
#4065DF #6B40DF #BA40DF
triadic
#6B40DF #DF6B40 #40DF6B
tetradic
#6B40DF #DF4065 #B4DF40 #40DFBA
square
#6B40DF #DF4065 #B4DF40 #40DFBA
split-complementary
#6B40DF #DFBA40 #65DF40
monochromatic
#37188D #4C20C1 #6B40DF #9474E8 #BCA9F1

Accessibility & contrast

On white

6.13
#6B40DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#6B40DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6B40DF
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6B40DF#FFFFFF#000000##FFFFFF
##6B40DF1.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#3E6A8C
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6b40df;
/* rgb */ color: rgb(107, 64, 223);
/* oklch */ color: oklch(52.0% 0.225 288.3);
Tailwind
colors: {
  custom: {
    50: '#a079ea',
    500: '#6b40df',
    950: '#000000',
  },
}
SCSS
$custom: #6b40df;
$custom-light: #a079ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6b40df",
  "rgb": {
    "r": 107,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 256.226,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51954,
    "c": 0.22543,
    "h": 288.3
  },
  "luminance": 0.1212
}

Semantic roles & 50–950 ramp

primary
#6B40DF
secondary
#CCDE9D
accent
#EE3ABD
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6B40DF

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

Preview Lab → · Contrast checker → · Palette generator →

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