#6C40CB#6C40CB

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

Color values

HEX#6C40CB
RGBrgb(108, 64, 203)
HSLhsl(259, 57%, 52%)
HSVhsv(259, 68%, 80%)
CMYKcmyk(46.8%, 68.5%, 0%, 20.4%)
CIE-LABlab(39.86, 50.52, -65.49)
CIE-LCHlch(39.86, 82.72, 307.65°)
OKLaboklab(50.37% 0.076 -0.1876)
OKLCHoklch(50.37% 0.202 292)
XYZxyz(18.7942, 11.1661, 57.6534)
Luminance0.1117 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40CB #9FCB40
analogous
#4059CB #6C40CB #B240CB
triadic
#6C40CB #CB6C40 #40CB6C
tetradic
#6C40CB #CB4059 #9FCB40 #40CBB2
square
#6C40CB #CB4059 #9FCB40 #40CBB2
split-complementary
#6C40CB #CBB240 #59CB40
monochromatic
#391F72 #512CA2 #6C40CB #9170D8 #B6A0E5

Accessibility & contrast

On white

6.49
#6C40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6C40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40CB
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40CB#FFFFFF#000000##FFFFFF
##6C40CB1.006.493.236.49
#FFFFFF6.491.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005BC8
Tritanopia (blue-blind)
#4F6380
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6c40cb;
/* rgb */ color: rgb(108, 64, 203);
/* oklch */ color: oklch(50.4% 0.202 292.0);
Tailwind
colors: {
  custom: {
    50: '#9e78dc',
    500: '#6c40cb',
    950: '#000000',
  },
}
SCSS
$custom: #6c40cb;
$custom-light: #9e78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40cb",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 258.993,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50367,
    "c": 0.20243,
    "h": 292
  },
  "luminance": 0.11167
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6C40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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