#6940DC#6940DC

#6940DC is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.222 H 288.0°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#6940DC
RGBrgb(105, 64, 220)
HSLhsl(256, 69%, 56%)
HSVhsv(256, 71%, 86%)
CMYKcmyk(52.3%, 70.9%, 0%, 13.7%)
CIE-LABlab(40.95, 54.72, -73.50)
CIE-LCHlch(40.95, 91.63, 306.66°)
OKLaboklab(51.51% 0.0686 -0.2112)
OKLCHoklch(51.51% 0.222 288)
XYZxyz(20.5736, 11.8364, 68.8969)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940DC #B3DC40
analogous
#4065DC #6940DC #B740DC
triadic
#6940DC #DC6940 #40DC69
tetradic
#6940DC #DC4065 #B3DC40 #40DCB7
square
#6940DC #DC4065 #B3DC40 #40DCB7
split-complementary
#6940DC #DCB740 #65DC40
monochromatic
#361989 #4B23BC #6940DC #9274E5 #BAA7EF

Accessibility & contrast

On white

6.24
#6940DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6940DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940DC
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940DC#FFFFFF#000000##FFFFFF
##6940DC1.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064E1
Deuteranopia (green-blind)
#005CD9
Tritanopia (blue-blind)
#3C698A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6940dc;
/* rgb */ color: rgb(105, 64, 220);
/* oklch */ color: oklch(51.5% 0.222 288.0);
Tailwind
colors: {
  custom: {
    50: '#9e78e8',
    500: '#6940dc',
    950: '#000000',
  },
}
SCSS
$custom: #6940dc;
$custom-light: #9e78e8;
$custom-dark: #000000;
JSON
{
  "hex": "#6940dc",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 220
  },
  "hsl": {
    "h": 255.769,
    "s": 69.027,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51509,
    "c": 0.22211,
    "h": 288
  },
  "luminance": 0.11837
}

Semantic roles & 50–950 ramp

primary
#6940DC
secondary
#CBDC9B
accent
#EC3CBE
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6940DC

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

Preview Lab → · Contrast checker → · Palette generator →

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