#6D40D4#6D40D4

#6D40D4 is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.2% C 0.213 H 290.9°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#6D40D4
RGBrgb(109, 64, 212)
HSLhsl(258, 63%, 54%)
HSVhsv(258, 70%, 83%)
CMYKcmyk(48.6%, 69.8%, 0%, 16.9%)
CIE-LABlab(40.69, 53.15, -69.33)
CIE-LCHlch(40.69, 87.36, 307.47°)
OKLaboklab(51.21% 0.0758 -0.1989)
OKLCHoklch(51.21% 0.213 290.9)
XYZxyz(20.0204, 11.6707, 63.4724)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40D4 #A7D440
analogous
#405DD4 #6D40D4 #B740D4
triadic
#6D40D4 #D46D40 #40D46D
tetradic
#6D40D4 #D4405D #A7D440 #40D4B7
square
#6D40D4 #D4405D #A7D440 #40D4B7
split-complementary
#6D40D4 #D4B740 #5DD440
monochromatic
#3A1C7D #5127AF #6D40D4 #9372DF #B9A4EA

Accessibility & contrast

On white

6.30
#6D40D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6D40D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40D4
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40D4#FFFFFF#000000##FFFFFF
##6D40D41.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D8
Deuteranopia (green-blind)
#005DD1
Tritanopia (blue-blind)
#4B6685
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6d40d4;
/* rgb */ color: rgb(109, 64, 212);
/* oklch */ color: oklch(51.2% 0.213 290.9);
Tailwind
colors: {
  custom: {
    50: '#a078e2',
    500: '#6d40d4',
    950: '#000000',
  },
}
SCSS
$custom: #6d40d4;
$custom-light: #a078e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40d4",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 212
  },
  "hsl": {
    "h": 258.243,
    "s": 63.248,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51208,
    "c": 0.21284,
    "h": 290.9
  },
  "luminance": 0.11671
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6D40D4

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

Preview Lab → · Contrast checker → · Palette generator →

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