#6D40D0#6D40D0

#6D40D0 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.208 H 291.6°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#6D40D0
RGBrgb(109, 64, 208)
HSLhsl(259, 61%, 53%)
HSVhsv(259, 69%, 82%)
CMYKcmyk(47.6%, 69.2%, 0%, 18.4%)
CIE-LABlab(40.36, 52.06, -67.56)
CIE-LCHlch(40.36, 85.29, 307.62°)
OKLaboklab(50.88% 0.0765 -0.1937)
OKLCHoklch(50.88% 0.208 291.6)
XYZxyz(19.5220, 11.4714, 60.8479)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40D0 #A3D040
analogous
#405BD0 #6D40D0 #B540D0
triadic
#6D40D0 #D06D40 #40D06D
tetradic
#6D40D0 #D0405B #A3D040 #40D0B5
square
#6D40D0 #D0405B #A3D040 #40D0B5
split-complementary
#6D40D0 #D0B540 #5BD040
monochromatic
#3A1E78 #512AA9 #6D40D0 #9371DC #B8A2E8

Accessibility & contrast

On white

6.37
#6D40D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6D40D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40D0
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40D0#FFFFFF#000000##FFFFFF
##6D40D01.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D4
Deuteranopia (green-blind)
#005CCD
Tritanopia (blue-blind)
#4E6583
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6d40d0;
/* rgb */ color: rgb(109, 64, 208);
/* oklch */ color: oklch(50.9% 0.208 291.6);
Tailwind
colors: {
  custom: {
    50: '#9f78df',
    500: '#6d40d0',
    950: '#000000',
  },
}
SCSS
$custom: #6d40d0;
$custom-light: #9f78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40d0",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 258.75,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50876,
    "c": 0.20823,
    "h": 291.6
  },
  "luminance": 0.11472
}

Semantic roles & 50–950 ramp

primary
#6D40D0
secondary
#C2D597
accent
#E444B2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#100915
muted
#7F7B83

Preview Lab

Preview with #6D40D0

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

Preview Lab → · Contrast checker → · Palette generator →

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