#6940BC#6940BC

#6940BC is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.9% C 0.185 H 293.6°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#6940BC
RGBrgb(105, 64, 188)
HSLhsl(260, 49%, 49%)
HSVhsv(260, 66%, 74%)
CMYKcmyk(44.1%, 66%, 0%, 26.3%)
CIE-LABlab(38.38, 45.85, -59.17)
CIE-LCHlch(38.38, 74.86, 307.77°)
OKLaboklab(48.86% 0.0739 -0.1691)
OKLCHoklch(48.86% 0.185 293.6)
XYZxyz(16.7337, 10.3004, 48.6737)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940BC #93BC40
analogous
#4055BC #6940BC #A740BC
triadic
#6940BC #BC6940 #40BC69
tetradic
#6940BC #BC4055 #93BC40 #40BCA7
square
#6940BC #BC4055 #93BC40 #40BCA7
split-complementary
#6940BC #BCA740 #55BC40
monochromatic
#362161 #50308E #6940BC #8C6CCD #B09ADD

Accessibility & contrast

On white

6.86
#6940BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6940BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940BC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940BC#FFFFFF#000000##FFFFFF
##6940BC1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC0
Deuteranopia (green-blind)
#0058B9
Tritanopia (blue-blind)
#525E78
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6940bc;
/* rgb */ color: rgb(105, 64, 188);
/* oklch */ color: oklch(48.9% 0.185 293.6);
Tailwind
colors: {
  custom: {
    50: '#9a77d1',
    500: '#6940bc',
    950: '#000000',
  },
}
SCSS
$custom: #6940bc;
$custom-light: #9a77d1;
$custom-dark: #000000;
JSON
{
  "hex": "#6940bc",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 188
  },
  "hsl": {
    "h": 259.839,
    "s": 49.206,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48865,
    "c": 0.1846,
    "h": 293.6
  },
  "luminance": 0.10301
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6940BC

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

Preview Lab → · Contrast checker → · Palette generator →

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