#6D40CC#6D40CC

#6D40CC is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.5% C 0.204 H 292.3°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#6D40CC
RGBrgb(109, 64, 204)
HSLhsl(259, 58%, 53%)
HSVhsv(259, 69%, 80%)
CMYKcmyk(46.6%, 68.6%, 0%, 20%)
CIE-LABlab(40.04, 50.97, -65.77)
CIE-LCHlch(40.04, 83.21, 307.78°)
OKLaboklab(50.55% 0.0772 -0.1884)
OKLCHoklch(50.55% 0.204 292.3)
XYZxyz(19.0361, 11.2770, 58.2887)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40CC #9FCC40
analogous
#4059CC #6D40CC #B340CC
triadic
#6D40CC #CC6D40 #40CC6D
tetradic
#6D40CC #CC4059 #9FCC40 #40CCB3
square
#6D40CC #CC4059 #9FCC40 #40CCB3
split-complementary
#6D40CC #CCB340 #59CC40
monochromatic
#3A1F73 #522CA3 #6D40CC #9270D9 #B7A1E6

Accessibility & contrast

On white

6.45
#6D40CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #6D40CC
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40CC#FFFFFF#000000##FFFFFF
##6D40CC1.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#506381
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6d40cc;
/* rgb */ color: rgb(109, 64, 204);
/* oklch */ color: oklch(50.5% 0.204 292.3);
Tailwind
colors: {
  custom: {
    50: '#9f78dd',
    500: '#6d40cc',
    950: '#000000',
  },
}
SCSS
$custom: #6d40cc;
$custom-light: #9f78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40cc",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 259.286,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50548,
    "c": 0.20361,
    "h": 292.3
  },
  "luminance": 0.11278
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D40CC

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

Preview Lab → · Contrast checker → · Palette generator →

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