#6940BB#6940BB

#6940BB is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.8% C 0.183 H 293.8°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#6940BB
RGBrgb(105, 64, 187)
HSLhsl(260, 49%, 49%)
HSVhsv(260, 66%, 73%)
CMYKcmyk(43.9%, 65.8%, 0%, 26.7%)
CIE-LABlab(38.30, 45.58, -58.71)
CIE-LCHlch(38.30, 74.32, 307.83°)
OKLaboklab(48.79% 0.0741 -0.1678)
OKLCHoklch(48.79% 0.183 293.8)
XYZxyz(16.6263, 10.2574, 48.1080)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940BB #92BB40
analogous
#4055BB #6940BB #A740BB
triadic
#6940BB #BB6940 #40BB69
tetradic
#6940BB #BB4055 #92BB40 #40BBA7
square
#6940BB #BB4055 #92BB40 #40BBA7
split-complementary
#6940BB #BBA740 #55BB40
monochromatic
#362160 #4F308D #6940BB #8C6CCD #B099DC

Accessibility & contrast

On white

6.88
#6940BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6940BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940BB
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940BB#FFFFFF#000000##FFFFFF
##6940BB1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#525D78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6940bb;
/* rgb */ color: rgb(105, 64, 187);
/* oklch */ color: oklch(48.8% 0.183 293.8);
Tailwind
colors: {
  custom: {
    50: '#9a77d0',
    500: '#6940bb',
    950: '#000000',
  },
}
SCSS
$custom: #6940bb;
$custom-light: #9a77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6940bb",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 260,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.48787,
    "c": 0.18341,
    "h": 293.8
  },
  "luminance": 0.10258
}

Semantic roles & 50–950 ramp

primary
#6940BB
secondary
#B5C88F
accent
#D94FAB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6940BB

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

Preview Lab → · Contrast checker → · Palette generator →

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