#6940E7#6940E7

#6940E7 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.5% C 0.235 H 286.4°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#6940E7
RGBrgb(105, 64, 231)
HSLhsl(255, 78%, 58%)
HSVhsv(255, 72%, 91%)
CMYKcmyk(54.5%, 72.3%, 0%, 9.4%)
CIE-LABlab(41.90, 57.77, -78.21)
CIE-LCHlch(41.90, 97.24, 306.45°)
OKLaboklab(52.47% 0.0663 -0.225)
OKLCHoklch(52.47% 0.235 286.4)
XYZxyz(22.0786, 12.4384, 76.8233)
Luminance0.1244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940E7 #BEE740
analogous
#406AE7 #6940E7 #BD40E7
triadic
#6940E7 #E76940 #40E769
tetradic
#6940E7 #E7406A #BEE740 #40E7BD
square
#6940E7 #E7406A #BEE740 #40E7BD
split-complementary
#6940E7 #E7BD40 #6AE740
monochromatic
#341399 #471AD0 #6940E7 #9476EE #BEADF5

Accessibility & contrast

On white

6.02
#6940E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#6940E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940E7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940E7#FFFFFF#000000##FFFFFF
##6940E71.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067EC
Deuteranopia (green-blind)
#005EE4
Tritanopia (blue-blind)
#316E90
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6940e7;
/* rgb */ color: rgb(105, 64, 231);
/* oklch */ color: oklch(52.5% 0.235 286.4);
Tailwind
colors: {
  custom: {
    50: '#a079f0',
    500: '#6940e7',
    950: '#000000',
  },
}
SCSS
$custom: #6940e7;
$custom-light: #a079f0;
$custom-dark: #000000;
JSON
{
  "hex": "#6940e7",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 231
  },
  "hsl": {
    "h": 254.731,
    "s": 77.674,
    "l": 57.843
  },
  "oklch": {
    "l": 0.52473,
    "c": 0.2346,
    "h": 286.4
  },
  "luminance": 0.1244
}

Semantic roles & 50–950 ramp

primary
#6940E7
secondary
#D2E3A0
accent
#F434C5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100917
muted
#7F7B85

Preview Lab

Preview with #6940E7

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

Preview Lab → · Contrast checker → · Palette generator →

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