#6D40C4#6D40C4

#6D40C4 is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.9% C 0.194 H 293.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#6D40C4
RGBrgb(109, 64, 196)
HSLhsl(260, 53%, 51%)
HSVhsv(260, 67%, 77%)
CMYKcmyk(44.4%, 67.3%, 0%, 23.1%)
CIE-LABlab(39.42, 48.80, -62.14)
CIE-LCHlch(39.42, 79.01, 308.15°)
OKLaboklab(49.9% 0.0785 -0.1777)
OKLCHoklch(49.9% 0.194 293.8)
XYZxyz(18.1012, 10.9030, 53.3646)
Luminance0.1090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40C4 #97C440
analogous
#4055C4 #6D40C4 #AF40C4
triadic
#6D40C4 #C46D40 #40C46D
tetradic
#6D40C4 #C44055 #97C440 #40C4AF
square
#6D40C4 #C44055 #97C440 #40C4AF
split-complementary
#6D40C4 #C4AF40 #55C440
monochromatic
#392069 #532F98 #6D40C4 #916FD2 #B49EE1

Accessibility & contrast

On white

6.60
#6D40C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6D40C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40C4
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40C4#FFFFFF#000000##FFFFFF
##6D40C41.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#005BC1
Tritanopia (blue-blind)
#54607D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6d40c4;
/* rgb */ color: rgb(109, 64, 196);
/* oklch */ color: oklch(49.9% 0.194 293.8);
Tailwind
colors: {
  custom: {
    50: '#9e78d7',
    500: '#6d40c4',
    950: '#000000',
  },
}
SCSS
$custom: #6d40c4;
$custom-light: #9e78d7;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40c4",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 196
  },
  "hsl": {
    "h": 260.455,
    "s": 52.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.49904,
    "c": 0.19429,
    "h": 293.8
  },
  "luminance": 0.10904
}

Semantic roles & 50–950 ramp

primary
#6D40C4
secondary
#B9CD93
accent
#DC4CAB
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6D40C4

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

Preview Lab → · Contrast checker → · Palette generator →

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