#6C40CE#6C40CE

#6C40CE is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.206 H 291.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#6C40CE
RGBrgb(108, 64, 206)
HSLhsl(259, 59%, 53%)
HSVhsv(259, 69%, 81%)
CMYKcmyk(47.6%, 68.9%, 0%, 19.2%)
CIE-LABlab(40.10, 51.34, -66.84)
CIE-LCHlch(40.10, 84.28, 307.53°)
OKLaboklab(50.61% 0.0755 -0.1916)
OKLCHoklch(50.61% 0.206 291.5)
XYZxyz(19.1552, 11.3105, 59.5544)
Luminance0.1131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40CE #A2CE40
analogous
#405BCE #6C40CE #B340CE
triadic
#6C40CE #CE6C40 #40CE6C
tetradic
#6C40CE #CE405B #A2CE40 #40CEB3
square
#6C40CE #CE405B #A2CE40 #40CEB3
split-complementary
#6C40CE #CEB340 #5BCE40
monochromatic
#391E75 #512BA6 #6C40CE #9171DA #B7A1E7

Accessibility & contrast

On white

6.44
#6C40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#6C40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40CE
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40CE#FFFFFF#000000##FFFFFF
##6C40CE1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005BCB
Tritanopia (blue-blind)
#4D6482
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6c40ce;
/* rgb */ color: rgb(108, 64, 206);
/* oklch */ color: oklch(50.6% 0.206 291.5);
Tailwind
colors: {
  custom: {
    50: '#9e78de',
    500: '#6c40ce',
    950: '#000000',
  },
}
SCSS
$custom: #6c40ce;
$custom-light: #9e78de;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40ce",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 258.592,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50613,
    "c": 0.20592,
    "h": 291.5
  },
  "luminance": 0.11311
}

Semantic roles & 50–950 ramp

primary
#6C40CE
secondary
#C1D496
accent
#E245B2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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