#6C40D0#6C40D0

#6C40D0 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.8% C 0.208 H 291.1°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#6C40D0
RGBrgb(108, 64, 208)
HSLhsl(258, 61%, 53%)
HSVhsv(258, 69%, 82%)
CMYKcmyk(48.1%, 69.2%, 0%, 18.4%)
CIE-LABlab(40.26, 51.89, -67.73)
CIE-LCHlch(40.26, 85.32, 307.46°)
OKLaboklab(50.78% 0.0751 -0.1942)
OKLCHoklch(50.78% 0.208 291.1)
XYZxyz(19.3997, 11.4083, 60.8421)
Luminance0.1141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40D0 #A4D040
analogous
#405CD0 #6C40D0 #B440D0
triadic
#6C40D0 #D06C40 #40D06C
tetradic
#6C40D0 #D0405C #A4D040 #40D0B4
square
#6C40D0 #D0405C #A4D040 #40D0B4
split-complementary
#6C40D0 #D0B440 #5CD040
monochromatic
#391E78 #512AA9 #6C40D0 #9271DC #B8A2E8

Accessibility & contrast

On white

6.40
#6C40D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#6C40D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40D0
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40D0#FFFFFF#000000##FFFFFF
##6C40D01.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D4
Deuteranopia (green-blind)
#005CCD
Tritanopia (blue-blind)
#4C6583
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6c40d0;
/* rgb */ color: rgb(108, 64, 208);
/* oklch */ color: oklch(50.8% 0.208 291.1);
Tailwind
colors: {
  custom: {
    50: '#9f78df',
    500: '#6c40d0',
    950: '#000000',
  },
}
SCSS
$custom: #6c40d0;
$custom-light: #9f78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40d0",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 258.333,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50778,
    "c": 0.20824,
    "h": 291.1
  },
  "luminance": 0.11409
}

Semantic roles & 50–950 ramp

primary
#6C40D0
secondary
#C2D597
accent
#E444B3
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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