#6D40CD#6D40CD

#6D40CD is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.205 H 292.1°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#6D40CD
RGBrgb(109, 64, 205)
HSLhsl(259, 59%, 53%)
HSVhsv(259, 69%, 80%)
CMYKcmyk(46.8%, 68.8%, 0%, 19.6%)
CIE-LABlab(40.12, 51.25, -66.22)
CIE-LCHlch(40.12, 83.73, 307.74°)
OKLaboklab(50.63% 0.077 -0.1897)
OKLCHoklch(50.63% 0.205 292.1)
XYZxyz(19.1564, 11.3251, 58.9224)
Luminance0.1133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40CD #A0CD40
analogous
#4059CD #6D40CD #B340CD
triadic
#6D40CD #CD6D40 #40CD6D
tetradic
#6D40CD #CD4059 #A0CD40 #40CDB3
square
#6D40CD #CD4059 #A0CD40 #40CDB3
split-complementary
#6D40CD #CDB340 #59CD40
monochromatic
#3A1E74 #522BA5 #6D40CD #9271DA #B7A1E6

Accessibility & contrast

On white

6.43
#6D40CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6D40CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40CD
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40CD#FFFFFF#000000##FFFFFF
##6D40CD1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D1
Deuteranopia (green-blind)
#005CCA
Tritanopia (blue-blind)
#4F6382
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6d40cd;
/* rgb */ color: rgb(109, 64, 205);
/* oklch */ color: oklch(50.6% 0.205 292.1);
Tailwind
colors: {
  custom: {
    50: '#9f78dd',
    500: '#6d40cd',
    950: '#000000',
  },
}
SCSS
$custom: #6d40cd;
$custom-light: #9f78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40cd",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 259.149,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5063,
    "c": 0.20477,
    "h": 292.1
  },
  "luminance": 0.11326
}

Semantic roles & 50–950 ramp

primary
#6D40CD
secondary
#BFD396
accent
#E246B0
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D40CD

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

Preview Lab → · Contrast checker → · Palette generator →

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