#6D40D5#6D40D5

#6D40D5 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.3% C 0.214 H 290.7°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#6D40D5
RGBrgb(109, 64, 213)
HSLhsl(258, 64%, 54%)
HSVhsv(258, 70%, 84%)
CMYKcmyk(48.8%, 70%, 0%, 16.5%)
CIE-LABlab(40.77, 53.42, -69.78)
CIE-LCHlch(40.77, 87.88, 307.44°)
OKLaboklab(51.29% 0.0756 -0.2002)
OKLCHoklch(51.29% 0.214 290.7)
XYZxyz(20.1469, 11.7213, 64.1388)
Luminance0.1172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40D5 #A8D540
analogous
#405ED5 #6D40D5 #B840D5
triadic
#6D40D5 #D56D40 #40D56D
tetradic
#6D40D5 #D5405E #A8D540 #40D5B8
square
#6D40D5 #D5405E #A8D540 #40D5B8
split-complementary
#6D40D5 #D5B840 #5ED540
monochromatic
#3A1C7F #5127B1 #6D40D5 #9372E0 #BAA4EB

Accessibility & contrast

On white

6.28
#6D40D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6D40D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40D5
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40D5#FFFFFF#000000##FFFFFF
##6D40D51.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D9
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#4A6686
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6d40d5;
/* rgb */ color: rgb(109, 64, 213);
/* oklch */ color: oklch(51.3% 0.214 290.7);
Tailwind
colors: {
  custom: {
    50: '#a078e3',
    500: '#6d40d5',
    950: '#000000',
  },
}
SCSS
$custom: #6d40d5;
$custom-light: #a078e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40d5",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 258.121,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.51292,
    "c": 0.21398,
    "h": 290.7
  },
  "luminance": 0.11722
}

Semantic roles & 50–950 ramp

primary
#6D40D5
secondary
#C5D899
accent
#E741B5
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6D40D5

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

Preview Lab → · Contrast checker → · Palette generator →

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