#6940C7#6940C7

#6940C7 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.7% C 0.198 H 291.5°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#6940C7
RGBrgb(105, 64, 199)
HSLhsl(258, 55%, 52%)
HSVhsv(258, 68%, 78%)
CMYKcmyk(47.2%, 67.8%, 0%, 22%)
CIE-LABlab(39.23, 48.89, -64.21)
CIE-LCHlch(39.23, 80.70, 307.28°)
OKLaboklab(49.75% 0.0724 -0.184)
OKLCHoklch(49.75% 0.198 291.5)
XYZxyz(17.9650, 10.7929, 55.1584)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940C7 #9EC740
analogous
#405BC7 #6940C7 #AD40C7
triadic
#6940C7 #C76940 #40C769
tetradic
#6940C7 #C7405B #9EC740 #40C7AD
square
#6940C7 #C7405B #9EC740 #40C7AD
split-complementary
#6940C7 #C7AD40 #5BC740
monochromatic
#37206D #4F2E9C #6940C7 #8E6FD5 #B39FE3

Accessibility & contrast

On white

6.65
#6940C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6940C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940C7
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940C7#FFFFFF#000000##FFFFFF
##6940C71.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#4C627E
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6940c7;
/* rgb */ color: rgb(105, 64, 199);
/* oklch */ color: oklch(49.7% 0.198 291.5);
Tailwind
colors: {
  custom: {
    50: '#9c78d9',
    500: '#6940c7',
    950: '#000000',
  },
}
SCSS
$custom: #6940c7;
$custom-light: #9c78d9;
$custom-dark: #000000;
JSON
{
  "hex": "#6940c7",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 199
  },
  "hsl": {
    "h": 258.222,
    "s": 54.656,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49745,
    "c": 0.1977,
    "h": 291.5
  },
  "luminance": 0.10794
}

Semantic roles & 50–950 ramp

primary
#6940C7
secondary
#BDCF94
accent
#DE4AB1
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6940C7

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

Preview Lab → · Contrast checker → · Palette generator →

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