#6940D3#6940D3

#6940D3 is a mid, highly saturated violet. Relative luminance 0.114; OKLCH L 50.7% C 0.212 H 289.4°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#6940D3
RGBrgb(105, 64, 211)
HSLhsl(257, 63%, 54%)
HSVhsv(257, 70%, 83%)
CMYKcmyk(50.2%, 69.7%, 0%, 17.3%)
CIE-LABlab(40.20, 52.22, -69.57)
CIE-LCHlch(40.20, 86.99, 306.89°)
OKLaboklab(50.74% 0.0704 -0.1997)
OKLCHoklch(50.74% 0.212 289.4)
XYZxyz(19.4136, 11.3724, 62.7876)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940D3 #AAD340
analogous
#4061D3 #6940D3 #B340D3
triadic
#6940D3 #D36940 #40D369
tetradic
#6940D3 #D34061 #AAD340 #40D3B3
square
#6940D3 #D34061 #AAD340 #40D3B3
split-complementary
#6940D3 #D3B340 #61D340
monochromatic
#371D7C #4D28AE #6940D3 #9072DE #B7A3EA

Accessibility & contrast

On white

6.41
#6940D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6940D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940D3
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940D3#FFFFFF#000000##FFFFFF
##6940D31.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#005BD0
Tritanopia (blue-blind)
#446685
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6940d3;
/* rgb */ color: rgb(105, 64, 211);
/* oklch */ color: oklch(50.7% 0.212 289.4);
Tailwind
colors: {
  custom: {
    50: '#9d78e2',
    500: '#6940d3',
    950: '#000000',
  },
}
SCSS
$custom: #6940d3;
$custom-light: #9d78e2;
$custom-dark: #000000;
JSON
{
  "hex": "#6940d3",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 211
  },
  "hsl": {
    "h": 256.735,
    "s": 62.553,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50741,
    "c": 0.21175,
    "h": 289.4
  },
  "luminance": 0.11373
}

Semantic roles & 50–950 ramp

primary
#6940D3
secondary
#C5D798
accent
#E642B8
background
#FAF7FE
surface
#F4EDFC
border
#CEC8D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #6940D3

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

Preview Lab → · Contrast checker → · Palette generator →

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