#6940D1#6940D1

#6940D1 is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 50.6% C 0.209 H 289.7°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#6940D1
RGBrgb(105, 64, 209)
HSLhsl(257, 61%, 54%)
HSVhsv(257, 69%, 82%)
CMYKcmyk(49.8%, 69.4%, 0%, 18%)
CIE-LABlab(40.04, 51.66, -68.69)
CIE-LCHlch(40.04, 85.95, 306.95°)
OKLaboklab(50.57% 0.0707 -0.1971)
OKLCHoklch(50.57% 0.209 289.7)
XYZxyz(19.1644, 11.2727, 61.4753)
Luminance0.1127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940D1 #A8D140
analogous
#405FD1 #6940D1 #B240D1
triadic
#6940D1 #D16940 #40D169
tetradic
#6940D1 #D1405F #A8D140 #40D1B2
square
#6940D1 #D1405F #A8D140 #40D1B2
split-complementary
#6940D1 #D1B240 #5FD140
monochromatic
#371D79 #4E29AB #6940D1 #9071DD #B6A3E9

Accessibility & contrast

On white

6.45
#6940D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#6940D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940D1
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940D1#FFFFFF#000000##FFFFFF
##6940D11.006.453.256.45
#FFFFFF6.451.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#005BCE
Tritanopia (blue-blind)
#456584
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6940d1;
/* rgb */ color: rgb(105, 64, 209);
/* oklch */ color: oklch(50.6% 0.209 289.7);
Tailwind
colors: {
  custom: {
    50: '#9d78e0',
    500: '#6940d1',
    950: '#000000',
  },
}
SCSS
$custom: #6940d1;
$custom-light: #9d78e0;
$custom-dark: #000000;
JSON
{
  "hex": "#6940d1",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 209
  },
  "hsl": {
    "h": 256.966,
    "s": 61.181,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50572,
    "c": 0.20942,
    "h": 289.7
  },
  "luminance": 0.11273
}

Semantic roles & 50–950 ramp

primary
#6940D1
secondary
#C4D597
accent
#E444B7
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6940D1

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

Preview Lab → · Contrast checker → · Palette generator →

#6940D1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva