#6D40CB#6D40CB

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

Color values

HEX#6D40CB
RGBrgb(109, 64, 203)
HSLhsl(259, 57%, 52%)
HSVhsv(259, 68%, 80%)
CMYKcmyk(46.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(39.96, 50.70, -65.32)
CIE-LCHlch(39.96, 82.69, 307.82°)
OKLaboklab(50.47% 0.0774 -0.1871)
OKLCHoklch(50.47% 0.202 292.5)
XYZxyz(18.9166, 11.2292, 57.6591)
Luminance0.1123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40CB #9ECB40
analogous
#4059CB #6D40CB #B240CB
triadic
#6D40CB #CB6D40 #40CB6D
tetradic
#6D40CB #CB4059 #9ECB40 #40CBB2
square
#6D40CB #CB4059 #9ECB40 #40CBB2
split-complementary
#6D40CB #CBB240 #59CB40
monochromatic
#3A1F72 #522CA2 #6D40CB #9270D8 #B7A0E5

Accessibility & contrast

On white

6.47
#6D40CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6D40CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40CB
6.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40CB#FFFFFF#000000##FFFFFF
##6D40CB1.006.473.256.47
#FFFFFF6.471.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6d40cb;
/* rgb */ color: rgb(109, 64, 203);
/* oklch */ color: oklch(50.5% 0.202 292.5);
Tailwind
colors: {
  custom: {
    50: '#9f78dc',
    500: '#6d40cb',
    950: '#000000',
  },
}
SCSS
$custom: #6d40cb;
$custom-light: #9f78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40cb",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 259.424,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50467,
    "c": 0.20245,
    "h": 292.5
  },
  "luminance": 0.1123
}

Semantic roles & 50–950 ramp

primary
#6D40CB
secondary
#BED295
accent
#E047AF
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D40CB

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

Preview Lab → · Contrast checker → · Palette generator →

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