#6940BD#6940BD

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

Color values

HEX#6940BD
RGBrgb(105, 64, 189)
HSLhsl(260, 49%, 50%)
HSVhsv(260, 66%, 74%)
CMYKcmyk(44.4%, 66.1%, 0%, 25.9%)
CIE-LABlab(38.45, 46.13, -59.63)
CIE-LCHlch(38.45, 75.39, 307.72°)
OKLaboklab(48.94% 0.0738 -0.1705)
OKLCHoklch(48.94% 0.186 293.4)
XYZxyz(16.8419, 10.3437, 49.2434)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940BD #94BD40
analogous
#4056BD #6940BD #A840BD
triadic
#6940BD #BD6940 #40BD69
tetradic
#6940BD #BD4056 #94BD40 #40BDA8
square
#6940BD #BD4056 #94BD40 #40BDA8
split-complementary
#6940BD #BDA840 #56BD40
monochromatic
#362162 #50318F #6940BD #8C6DCD #B09ADD

Accessibility & contrast

On white

6.84
#6940BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#6940BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940BD
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940BD#FFFFFF#000000##FFFFFF
##6940BD1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC1
Deuteranopia (green-blind)
#0058BA
Tritanopia (blue-blind)
#515E79
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6940bd;
/* rgb */ color: rgb(105, 64, 189);
/* oklch */ color: oklch(48.9% 0.186 293.4);
Tailwind
colors: {
  custom: {
    50: '#9a77d2',
    500: '#6940bd',
    950: '#000000',
  },
}
SCSS
$custom: #6940bd;
$custom-light: #9a77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6940bd",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 259.68,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48944,
    "c": 0.1858,
    "h": 293.4
  },
  "luminance": 0.10344
}

Semantic roles & 50–950 ramp

primary
#6940BD
secondary
#B6C990
accent
#D94FAC
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6940BD

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

Preview Lab → · Contrast checker → · Palette generator →

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