#6C40C8#6C40C8

#6C40C8 is a mid, vivid violet. Relative luminance 0.110; OKLCH L 50.1% C 0.199 H 292.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#6C40C8
RGBrgb(108, 64, 200)
HSLhsl(259, 55%, 52%)
HSVhsv(259, 68%, 78%)
CMYKcmyk(46%, 68%, 0%, 21.6%)
CIE-LABlab(39.62, 49.70, -64.14)
CIE-LCHlch(39.62, 81.14, 307.77°)
OKLaboklab(50.12% 0.0765 -0.1836)
OKLCHoklch(50.12% 0.199 292.6)
XYZxyz(18.4402, 11.0245, 55.7887)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6C40C8 #9CC840
analogous
#4058C8 #6C40C8 #B040C8
triadic
#6C40C8 #C86C40 #40C86C
tetradic
#6C40C8 #C84058 #9CC840 #40C8B0
square
#6C40C8 #C84058 #9CC840 #40C8B0
split-complementary
#6C40C8 #C8B040 #58C840
monochromatic
#39206E #522D9D #6C40C8 #9170D6 #B59FE3

Accessibility & contrast

On white

6.55
#6C40C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6C40C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6C40C8
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6C40C8#FFFFFF#000000##FFFFFF
##6C40C81.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005BC5
Tritanopia (blue-blind)
#50627F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6c40c8;
/* rgb */ color: rgb(108, 64, 200);
/* oklch */ color: oklch(50.1% 0.199 292.6);
Tailwind
colors: {
  custom: {
    50: '#9e78da',
    500: '#6c40c8',
    950: '#000000',
  },
}
SCSS
$custom: #6c40c8;
$custom-light: #9e78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6c40c8",
  "rgb": {
    "r": 108,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 259.412,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.50124,
    "c": 0.19893,
    "h": 292.6
  },
  "luminance": 0.11025
}

Semantic roles & 50–950 ramp

primary
#6C40C8
secondary
#BCD094
accent
#DF49AE
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6C40C8

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

Preview Lab → · Contrast checker → · Palette generator →

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