#6C40CD#6C40CD

#6C40CD is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.5% C 0.205 H 291.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#6C40CD
RGBrgb(108, 64, 205)
HSLhsl(259, 59%, 53%)
HSVhsv(259, 69%, 80%)
CMYKcmyk(47.3%, 68.8%, 0%, 19.6%)
CIE-LABlab(40.02, 51.07, -66.39)
CIE-LCHlch(40.02, 83.76, 307.57°)
OKLaboklab(50.53% 0.0756 -0.1903)
OKLCHoklch(50.53% 0.205 291.7)
XYZxyz(19.0341, 11.2620, 58.9167)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40CD #A1CD40
analogous
#405BCD #6C40CD #B240CD
triadic
#6C40CD #CD6C40 #40CD6C
tetradic
#6C40CD #CD405B #A1CD40 #40CDB2
square
#6C40CD #CD405B #A1CD40 #40CDB2
split-complementary
#6C40CD #CDB240 #5BCD40
monochromatic
#391E74 #512BA5 #6C40CD #9171DA #B7A1E6

Accessibility & contrast

On white

6.46
#6C40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6C40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40CD
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40CD#FFFFFF#000000##FFFFFF
##6C40CD1.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D1
Deuteranopia (green-blind)
#005BCA
Tritanopia (blue-blind)
#4E6382
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6c40cd;
/* rgb */ color: rgb(108, 64, 205);
/* oklch */ color: oklch(50.5% 0.205 291.7);
Tailwind
colors: {
  custom: {
    50: '#9e78dd',
    500: '#6c40cd',
    950: '#000000',
  },
}
SCSS
$custom: #6c40cd;
$custom-light: #9e78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40cd",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 258.723,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.50531,
    "c": 0.20475,
    "h": 291.7
  },
  "luminance": 0.11263
}

Semantic roles & 50–950 ramp

primary
#6C40CD
secondary
#C0D396
accent
#E246B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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