#6940BF#6940BF

#6940BF is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.1% C 0.188 H 293.0°. Best body text is #FFFFFF at 6.80:1 contrast (WCAG AA passes).

Color values

HEX#6940BF
RGBrgb(105, 64, 191)
HSLhsl(259, 50%, 50%)
HSVhsv(259, 66%, 75%)
CMYKcmyk(45%, 66.5%, 0%, 25.1%)
CIE-LABlab(38.61, 46.68, -60.56)
CIE-LCHlch(38.61, 76.46, 307.63°)
OKLaboklab(49.1% 0.0736 -0.1732)
OKLCHoklch(49.1% 0.188 293)
XYZxyz(17.0605, 10.4311, 50.3946)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940BF #96BF40
analogous
#4057BF #6940BF #A840BF
triadic
#6940BF #BF6940 #40BF69
tetradic
#6940BF #BF4057 #96BF40 #40BFA8
square
#6940BF #BF4057 #96BF40 #40BFA8
split-complementary
#6940BF #BFA840 #57BF40
monochromatic
#372163 #503191 #6940BF #8D6ECE #B19CDE

Accessibility & contrast

On white

6.80
#6940BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#6940BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940BF
6.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940BF#FFFFFF#000000##FFFFFF
##6940BF1.006.803.096.80
#FFFFFF6.801.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0059BC
Tritanopia (blue-blind)
#505F7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6940bf;
/* rgb */ color: rgb(105, 64, 191);
/* oklch */ color: oklch(49.1% 0.188 293.0);
Tailwind
colors: {
  custom: {
    50: '#9b77d3',
    500: '#6940bf',
    950: '#000000',
  },
}
SCSS
$custom: #6940bf;
$custom-light: #9b77d3;
$custom-dark: #000000;
JSON
{
  "hex": "#6940bf",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 191
  },
  "hsl": {
    "h": 259.37,
    "s": 49.804,
    "l": 50
  },
  "oklch": {
    "l": 0.49102,
    "c": 0.1882,
    "h": 293
  },
  "luminance": 0.10432
}

Semantic roles & 50–950 ramp

primary
#6940BF
secondary
#B7CA91
accent
#D94EAC
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6940BF

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

Preview Lab → · Contrast checker → · Palette generator →

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