#6C40DC#6C40DC

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

Color values

HEX#6C40DC
RGBrgb(108, 64, 220)
HSLhsl(257, 69%, 56%)
HSVhsv(257, 71%, 86%)
CMYKcmyk(50.9%, 70.9%, 0%, 13.7%)
CIE-LABlab(41.25, 55.18, -73.01)
CIE-LCHlch(41.25, 91.52, 307.08°)
OKLaboklab(51.79% 0.0729 -0.2097)
OKLCHoklch(51.79% 0.222 289.2)
XYZxyz(20.9323, 12.0213, 68.9137)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40DC #B0DC40
analogous
#4062DC #6C40DC #BA40DC
triadic
#6C40DC #DC6C40 #40DC6C
tetradic
#6C40DC #DC4062 #B0DC40 #40DCBA
square
#6C40DC #DC4062 #B0DC40 #40DCBA
split-complementary
#6C40DC #DCBA40 #62DC40
monochromatic
#381989 #4E23BC #6C40DC #9474E5 #BCA7EF

Accessibility & contrast

On white

6.17
#6C40DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#6C40DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40DC
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40DC#FFFFFF#000000##FFFFFF
##6C40DC1.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6c40dc;
/* rgb */ color: rgb(108, 64, 220);
/* oklch */ color: oklch(51.8% 0.222 289.2);
Tailwind
colors: {
  custom: {
    50: '#a079e8',
    500: '#6c40dc',
    950: '#000000',
  },
}
SCSS
$custom: #6c40dc;
$custom-light: #a079e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40dc",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 256.923,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51789,
    "c": 0.22198,
    "h": 289.2
  },
  "luminance": 0.12022
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C40DC

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

Preview Lab → · Contrast checker → · Palette generator →

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