#6940CF#6940CF

#6940CF is a mid, highly saturated violet. Relative luminance 0.112; OKLCH L 50.4% C 0.207 H 290.1°. Best body text is #FFFFFF at 6.49:1 contrast (WCAG AA passes).

Color values

HEX#6940CF
RGBrgb(105, 64, 207)
HSLhsl(257, 60%, 53%)
HSVhsv(257, 69%, 81%)
CMYKcmyk(49.3%, 69.1%, 0%, 18.8%)
CIE-LABlab(39.87, 51.10, -67.80)
CIE-LCHlch(39.87, 84.90, 307.01°)
OKLaboklab(50.41% 0.0711 -0.1945)
OKLCHoklch(50.41% 0.207 290.1)
XYZxyz(18.9184, 11.1743, 60.1794)
Luminance0.1118 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940CF #A6CF40
analogous
#405ECF #6940CF #B140CF
triadic
#6940CF #CF6940 #40CF69
tetradic
#6940CF #CF405E #A6CF40 #40CFB1
square
#6940CF #CF405E #A6CF40 #40CFB1
split-complementary
#6940CF #CFB140 #5ECF40
monochromatic
#371E77 #4E2AA8 #6940CF #8F71DB #B6A2E8

Accessibility & contrast

On white

6.49
#6940CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#6940CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940CF
6.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940CF#FFFFFF#000000##FFFFFF
##6940CF1.006.493.246.49
#FFFFFF6.491.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D3
Deuteranopia (green-blind)
#005BCC
Tritanopia (blue-blind)
#466483
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6940cf;
/* rgb */ color: rgb(105, 64, 207);
/* oklch */ color: oklch(50.4% 0.207 290.1);
Tailwind
colors: {
  custom: {
    50: '#9d78df',
    500: '#6940cf',
    950: '#000000',
  },
}
SCSS
$custom: #6940cf;
$custom-light: #9d78df;
$custom-dark: #000000;
JSON
{
  "hex": "#6940cf",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 257.203,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50405,
    "c": 0.20708,
    "h": 290.1
  },
  "luminance": 0.11175
}

Semantic roles & 50–950 ramp

primary
#6940CF
secondary
#C3D497
accent
#E345B6
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6940CF

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

Preview Lab → · Contrast checker → · Palette generator →

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