#6940BE#6940BE

#6940BE is a mid, vivid violet. Relative luminance 0.104; OKLCH L 49.0% C 0.187 H 293.2°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#6940BE
RGBrgb(105, 64, 190)
HSLhsl(260, 50%, 50%)
HSVhsv(260, 66%, 75%)
CMYKcmyk(44.7%, 66.3%, 0%, 25.5%)
CIE-LABlab(38.53, 46.40, -60.10)
CIE-LCHlch(38.53, 75.93, 307.67°)
OKLaboklab(49.02% 0.0737 -0.1719)
OKLCHoklch(49.02% 0.187 293.2)
XYZxyz(16.9508, 10.3873, 49.8170)
Luminance0.1039 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940BE #95BE40
analogous
#4056BE #6940BE #A840BE
triadic
#6940BE #BE6940 #40BE69
tetradic
#6940BE #BE4056 #95BE40 #40BEA8
square
#6940BE #BE4056 #95BE40 #40BEA8
split-complementary
#6940BE #BEA840 #56BE40
monochromatic
#362162 #503190 #6940BE #8D6DCE #B19BDD

Accessibility & contrast

On white

6.82
#6940BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6940BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940BE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940BE#FFFFFF#000000##FFFFFF
##6940BE1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6940be;
/* rgb */ color: rgb(105, 64, 190);
/* oklch */ color: oklch(49.0% 0.187 293.2);
Tailwind
colors: {
  custom: {
    50: '#9b77d2',
    500: '#6940be',
    950: '#000000',
  },
}
SCSS
$custom: #6940be;
$custom-light: #9b77d2;
$custom-dark: #000000;
JSON
{
  "hex": "#6940be",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 190
  },
  "hsl": {
    "h": 259.524,
    "s": 49.606,
    "l": 49.804
  },
  "oklch": {
    "l": 0.49023,
    "c": 0.187,
    "h": 293.2
  },
  "luminance": 0.10388
}

Semantic roles & 50–950 ramp

primary
#6940BE
secondary
#B7C990
accent
#D94FAC
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6940BE

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

Preview Lab → · Contrast checker → · Palette generator →

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