#6C40DB#6C40DB

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

Color values

HEX#6C40DB
RGBrgb(108, 64, 219)
HSLhsl(257, 68%, 55%)
HSVhsv(257, 71%, 86%)
CMYKcmyk(50.7%, 70.8%, 0%, 14.1%)
CIE-LABlab(41.17, 54.90, -72.57)
CIE-LCHlch(41.17, 91.00, 307.11°)
OKLaboklab(51.7% 0.0731 -0.2084)
OKLCHoklch(51.7% 0.221 289.3)
XYZxyz(20.8002, 11.9685, 68.2183)
Luminance0.1197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40DB #AFDB40
analogous
#4061DB #6C40DB #B940DB
triadic
#6C40DB #DB6C40 #40DB6C
tetradic
#6C40DB #DB4061 #AFDB40 #40DBB9
square
#6C40DB #DB4061 #AFDB40 #40DBB9
split-complementary
#6C40DB #DBB940 #61DB40
monochromatic
#391987 #4E23BB #6C40DB #9473E5 #BBA7EE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##6C40DB#FFFFFF#000000##FFFFFF
##6C40DB1.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)
#0064E0
Deuteranopia (green-blind)
#005DD8
Tritanopia (blue-blind)
#446989
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6c40db;
/* rgb */ color: rgb(108, 64, 219);
/* oklch */ color: oklch(51.7% 0.221 289.3);
Tailwind
colors: {
  custom: {
    50: '#a079e7',
    500: '#6c40db',
    950: '#000000',
  },
}
SCSS
$custom: #6c40db;
$custom-light: #a079e7;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40db",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 219
  },
  "hsl": {
    "h": 257.032,
    "s": 68.282,
    "l": 55.49
  },
  "oklch": {
    "l": 0.51703,
    "c": 0.22085,
    "h": 289.3
  },
  "luminance": 0.11969
}

Semantic roles & 50–950 ramp

primary
#6C40DB
secondary
#C9DC9B
accent
#EB3DBA
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6C40DB

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

Preview Lab → · Contrast checker → · Palette generator →

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