#6D40CE#6D40CE

#6D40CE is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.206 H 291.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#6D40CE
RGBrgb(109, 64, 206)
HSLhsl(259, 59%, 53%)
HSVhsv(259, 69%, 81%)
CMYKcmyk(47.1%, 68.9%, 0%, 19.2%)
CIE-LABlab(40.20, 51.52, -66.67)
CIE-LCHlch(40.20, 84.25, 307.70°)
OKLaboklab(50.71% 0.0769 -0.191)
OKLCHoklch(50.71% 0.206 291.9)
XYZxyz(19.2775, 11.3736, 59.5601)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6D40CE #A1CE40
analogous
#405ACE #6D40CE #B440CE
triadic
#6D40CE #CE6D40 #40CE6D
tetradic
#6D40CE #CE405A #A1CE40 #40CEB4
square
#6D40CE #CE405A #A1CE40 #40CEB4
split-complementary
#6D40CE #CEB440 #5ACE40
monochromatic
#3A1E75 #522BA6 #6D40CE #9271DA #B7A1E7

Accessibility & contrast

On white

6.41
#6D40CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6D40CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6D40CE
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6D40CE#FFFFFF#000000##FFFFFF
##6D40CE1.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D2
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#4F6482
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6d40ce;
/* rgb */ color: rgb(109, 64, 206);
/* oklch */ color: oklch(50.7% 0.206 291.9);
Tailwind
colors: {
  custom: {
    50: '#9f78de',
    500: '#6d40ce',
    950: '#000000',
  },
}
SCSS
$custom: #6d40ce;
$custom-light: #9f78de;
$custom-dark: #000000;
JSON
{
  "hex": "#6d40ce",
  "rgb": {
    "r": 109,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 259.014,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50712,
    "c": 0.20593,
    "h": 291.9
  },
  "luminance": 0.11374
}

Semantic roles & 50–950 ramp

primary
#6D40CE
secondary
#C0D496
accent
#E245B1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6D40CE

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

Preview Lab → · Contrast checker → · Palette generator →

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