#6940DF#6940DF

#6940DF is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 51.8% C 0.226 H 287.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#6940DF
RGBrgb(105, 64, 223)
HSLhsl(255, 71%, 56%)
HSVhsv(255, 71%, 87%)
CMYKcmyk(52.9%, 71.3%, 0%, 12.5%)
CIE-LABlab(41.21, 55.55, -74.80)
CIE-LCHlch(41.21, 93.17, 306.60°)
OKLaboklab(51.77% 0.068 -0.215)
OKLCHoklch(51.77% 0.226 287.6)
XYZxyz(20.9744, 11.9967, 71.0081)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940DF #B6DF40
analogous
#4067DF #6940DF #B940DF
triadic
#6940DF #DF6940 #40DF69
tetradic
#6940DF #DF4067 #B6DF40 #40DFB9
square
#6940DF #DF4067 #B6DF40 #40DFB9
split-complementary
#6940DF #DFB940 #67DF40
monochromatic
#36188D #4A20C1 #6940DF #9274E8 #BBA9F1

Accessibility & contrast

On white

6.18
#6940DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#6940DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940DF
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940DF#FFFFFF#000000##FFFFFF
##6940DF1.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E4
Deuteranopia (green-blind)
#005DDC
Tritanopia (blue-blind)
#396A8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6940df;
/* rgb */ color: rgb(105, 64, 223);
/* oklch */ color: oklch(51.8% 0.226 287.6);
Tailwind
colors: {
  custom: {
    50: '#9f79ea',
    500: '#6940df',
    950: '#000000',
  },
}
SCSS
$custom: #6940df;
$custom-light: #9f79ea;
$custom-dark: #000000;
JSON
{
  "hex": "#6940df",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 223
  },
  "hsl": {
    "h": 255.472,
    "s": 71.3,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5177,
    "c": 0.22554,
    "h": 287.6
  },
  "luminance": 0.11998
}

Semantic roles & 50–950 ramp

primary
#6940DF
secondary
#CDDE9D
accent
#EE3AC0
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6940DF

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

Preview Lab → · Contrast checker → · Palette generator →

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