#6C40CC#6C40CC

#6C40CC is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.204 H 291.9°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#6C40CC
RGBrgb(108, 64, 204)
HSLhsl(259, 58%, 53%)
HSVhsv(259, 69%, 80%)
CMYKcmyk(47.1%, 68.6%, 0%, 20%)
CIE-LABlab(39.94, 50.80, -65.94)
CIE-LCHlch(39.94, 83.24, 307.61°)
OKLaboklab(50.45% 0.0758 -0.1889)
OKLCHoklch(50.45% 0.204 291.9)
XYZxyz(18.9138, 11.2139, 58.2830)
Luminance0.1121 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40CC #A0CC40
analogous
#405ACC #6C40CC #B240CC
triadic
#6C40CC #CC6C40 #40CC6C
tetradic
#6C40CC #CC405A #A0CC40 #40CCB2
square
#6C40CC #CC405A #A0CC40 #40CCB2
split-complementary
#6C40CC #CCB240 #5ACC40
monochromatic
#391F73 #512CA3 #6C40CC #9170D9 #B6A1E6

Accessibility & contrast

On white

6.48
#6C40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6C40CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40CC
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40CC#FFFFFF#000000##FFFFFF
##6C40CC1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005BC9
Tritanopia (blue-blind)
#4E6381
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6c40cc;
/* rgb */ color: rgb(108, 64, 204);
/* oklch */ color: oklch(50.4% 0.204 291.9);
Tailwind
colors: {
  custom: {
    50: '#9e78dd',
    500: '#6c40cc',
    950: '#000000',
  },
}
SCSS
$custom: #6c40cc;
$custom-light: #9e78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40cc",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 258.857,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50449,
    "c": 0.20359,
    "h": 291.9
  },
  "luminance": 0.11215
}

Semantic roles & 50–950 ramp

primary
#6C40CC
secondary
#BFD295
accent
#E147B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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