#6D40D3#6D40D3

#6D40D3 is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.1% C 0.212 H 291.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#6D40D3
RGBrgb(109, 64, 211)
HSLhsl(258, 63%, 54%)
HSVhsv(258, 70%, 83%)
CMYKcmyk(48.3%, 69.7%, 0%, 17.3%)
CIE-LABlab(40.61, 52.88, -68.89)
CIE-LCHlch(40.61, 86.85, 307.51°)
OKLaboklab(51.13% 0.076 -0.1976)
OKLCHoklch(51.13% 0.212 291)
XYZxyz(19.8946, 11.6204, 62.8101)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40D3 #A6D340
analogous
#405DD3 #6D40D3 #B640D3
triadic
#6D40D3 #D36D40 #40D36D
tetradic
#6D40D3 #D3405D #A6D340 #40D3B6
square
#6D40D3 #D3405D #A6D340 #40D3B6
split-complementary
#6D40D3 #D3B640 #5DD340
monochromatic
#3A1D7C #5128AE #6D40D3 #9372DE #B9A3EA

Accessibility & contrast

On white

6.32
#6D40D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#6D40D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40D3
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40D3#FFFFFF#000000##FFFFFF
##6D40D31.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#005CD0
Tritanopia (blue-blind)
#4C6685
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6d40d3;
/* rgb */ color: rgb(109, 64, 211);
/* oklch */ color: oklch(51.1% 0.212 291.0);
Tailwind
colors: {
  custom: {
    50: '#a078e2',
    500: '#6d40d3',
    950: '#000000',
  },
}
SCSS
$custom: #6d40d3;
$custom-light: #a078e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40d3",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 258.367,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51125,
    "c": 0.21169,
    "h": 291
  },
  "luminance": 0.11621
}

Semantic roles & 50–950 ramp

primary
#6D40D3
secondary
#C4D798
accent
#E642B4
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100915
muted
#7F7B84

Preview Lab

Preview with #6D40D3

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

Preview Lab → · Contrast checker → · Palette generator →

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