#6940CE#6940CE

#6940CE is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.3% C 0.206 H 290.2°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#6940CE
RGBrgb(105, 64, 206)
HSLhsl(257, 59%, 53%)
HSVhsv(257, 69%, 81%)
CMYKcmyk(49%, 68.9%, 0%, 19.2%)
CIE-LABlab(39.79, 50.83, -67.35)
CIE-LCHlch(39.79, 84.38, 307.04°)
OKLaboklab(50.32% 0.0713 -0.1932)
OKLCHoklch(50.32% 0.206 290.2)
XYZxyz(18.7965, 11.1255, 59.5376)
Luminance0.1113 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940CE #A5CE40
analogous
#405ECE #6940CE #B040CE
triadic
#6940CE #CE6940 #40CE69
tetradic
#6940CE #CE405E #A5CE40 #40CEB0
square
#6940CE #CE405E #A5CE40 #40CEB0
split-complementary
#6940CE #CEB040 #5ECE40
monochromatic
#371E75 #4E2BA6 #6940CE #8F71DA #B5A1E7

Accessibility & contrast

On white

6.51
#6940CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6940CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940CE
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940CE#FFFFFF#000000##FFFFFF
##6940CE1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#005ACB
Tritanopia (blue-blind)
#476482
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6940ce;
/* rgb */ color: rgb(105, 64, 206);
/* oklch */ color: oklch(50.3% 0.206 290.2);
Tailwind
colors: {
  custom: {
    50: '#9d78de',
    500: '#6940ce',
    950: '#000000',
  },
}
SCSS
$custom: #6940ce;
$custom-light: #9d78de;
$custom-dark: #000000;
JSON
{
  "hex": "#6940ce",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 257.324,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50322,
    "c": 0.20592,
    "h": 290.2
  },
  "luminance": 0.11126
}

Semantic roles & 50–950 ramp

primary
#6940CE
secondary
#C2D496
accent
#E245B5
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6940CE

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

Preview Lab → · Contrast checker → · Palette generator →

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