#6940D5#6940D5

#6940D5 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 50.9% C 0.214 H 289.1°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#6940D5
RGBrgb(105, 64, 213)
HSLhsl(257, 64%, 54%)
HSVhsv(257, 70%, 84%)
CMYKcmyk(50.7%, 70%, 0%, 16.5%)
CIE-LABlab(40.37, 52.77, -70.45)
CIE-LCHlch(40.37, 88.02, 306.83°)
OKLaboklab(50.91% 0.07 -0.2023)
OKLCHoklch(50.91% 0.214 289.1)
XYZxyz(19.6659, 11.4733, 64.1162)
Luminance0.1147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940D5 #ACD540
analogous
#4062D5 #6940D5 #B340D5
triadic
#6940D5 #D56940 #40D569
tetradic
#6940D5 #D54062 #ACD540 #40D5B3
square
#6940D5 #D54062 #ACD540 #40D5B3
split-complementary
#6940D5 #D5B340 #62D540
monochromatic
#371C7F #4D27B1 #6940D5 #9072E0 #B8A4EB

Accessibility & contrast

On white

6.37
#6940D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#6940D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940D5
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940D5#FFFFFF#000000##FFFFFF
##6940D51.006.373.296.37
#FFFFFF6.371.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#005BD2
Tritanopia (blue-blind)
#426786
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6940d5;
/* rgb */ color: rgb(105, 64, 213);
/* oklch */ color: oklch(50.9% 0.214 289.1);
Tailwind
colors: {
  custom: {
    50: '#9d78e3',
    500: '#6940d5',
    950: '#000000',
  },
}
SCSS
$custom: #6940d5;
$custom-light: #9d78e3;
$custom-dark: #000000;
JSON
{
  "hex": "#6940d5",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 213
  },
  "hsl": {
    "h": 256.51,
    "s": 63.948,
    "l": 54.314
  },
  "oklch": {
    "l": 0.5091,
    "c": 0.21406,
    "h": 289.1
  },
  "luminance": 0.11474
}

Semantic roles & 50–950 ramp

primary
#6940D5
secondary
#C7D899
accent
#E741B9
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6940D5

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

Preview Lab → · Contrast checker → · Palette generator →

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