#6940CC#6940CC

#6940CC is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.2% C 0.204 H 290.6°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#6940CC
RGBrgb(105, 64, 204)
HSLhsl(258, 58%, 53%)
HSVhsv(258, 69%, 80%)
CMYKcmyk(48.5%, 68.6%, 0%, 20%)
CIE-LABlab(39.63, 50.27, -66.46)
CIE-LCHlch(39.63, 83.33, 307.10°)
OKLaboklab(50.16% 0.0716 -0.1906)
OKLCHoklch(50.16% 0.204 290.6)
XYZxyz(18.5551, 11.0290, 58.2662)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940CC #A3CC40
analogous
#405DCC #6940CC #AF40CC
triadic
#6940CC #CC6940 #40CC69
tetradic
#6940CC #CC405D #A3CC40 #40CCAF
square
#6940CC #CC405D #A3CC40 #40CCAF
split-complementary
#6940CC #CCAF40 #5DCC40
monochromatic
#371F73 #4F2CA3 #6940CC #8F70D9 #B5A1E6

Accessibility & contrast

On white

6.55
#6940CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#6940CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940CC
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940CC#FFFFFF#000000##FFFFFF
##6940CC1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#486381
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6940cc;
/* rgb */ color: rgb(105, 64, 204);
/* oklch */ color: oklch(50.2% 0.204 290.6);
Tailwind
colors: {
  custom: {
    50: '#9c78dd',
    500: '#6940cc',
    950: '#000000',
  },
}
SCSS
$custom: #6940cc;
$custom-light: #9c78dd;
$custom-dark: #000000;
JSON
{
  "hex": "#6940cc",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 257.571,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50156,
    "c": 0.20358,
    "h": 290.6
  },
  "luminance": 0.1103
}

Semantic roles & 50–950 ramp

primary
#6940CC
secondary
#C0D295
accent
#E147B4
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6940CC

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

Preview Lab → · Contrast checker → · Palette generator →

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