#6940CB#6940CB

#6940CB is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.1% C 0.202 H 290.8°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#6940CB
RGBrgb(105, 64, 203)
HSLhsl(258, 57%, 52%)
HSVhsv(258, 68%, 80%)
CMYKcmyk(48.3%, 68.5%, 0%, 20.4%)
CIE-LABlab(39.55, 50.00, -66.01)
CIE-LCHlch(39.55, 82.81, 307.14°)
OKLaboklab(50.07% 0.0718 -0.1893)
OKLCHoklch(50.07% 0.202 290.8)
XYZxyz(18.4355, 10.9811, 57.6365)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940CB #A2CB40
analogous
#405CCB #6940CB #AF40CB
triadic
#6940CB #CB6940 #40CB69
tetradic
#6940CB #CB405C #A2CB40 #40CBAF
square
#6940CB #CB405C #A2CB40 #40CBAF
split-complementary
#6940CB #CBAF40 #5CCB40
monochromatic
#371F72 #4F2CA2 #6940CB #8F70D8 #B5A0E5

Accessibility & contrast

On white

6.57
#6940CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#6940CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940CB
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940CB#FFFFFF#000000##FFFFFF
##6940CB1.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#005AC8
Tritanopia (blue-blind)
#496380
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6940cb;
/* rgb */ color: rgb(105, 64, 203);
/* oklch */ color: oklch(50.1% 0.202 290.8);
Tailwind
colors: {
  custom: {
    50: '#9c78dc',
    500: '#6940cb',
    950: '#000000',
  },
}
SCSS
$custom: #6940cb;
$custom-light: #9c78dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6940cb",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 257.698,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.50073,
    "c": 0.20241,
    "h": 290.8
  },
  "luminance": 0.10982
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6940CB

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

Preview Lab → · Contrast checker → · Palette generator →

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