#6940C0#6940C0

#6940C0 is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.2% C 0.189 H 292.8°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#6940C0
RGBrgb(105, 64, 192)
HSLhsl(259, 50%, 50%)
HSVhsv(259, 67%, 75%)
CMYKcmyk(45.3%, 66.7%, 0%, 24.7%)
CIE-LABlab(38.68, 46.95, -61.02)
CIE-LCHlch(38.68, 76.99, 307.58°)
OKLaboklab(49.18% 0.0734 -0.1746)
OKLCHoklch(49.18% 0.189 292.8)
XYZxyz(17.1709, 10.4753, 50.9762)
Luminance0.1048 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940C0 #97C040
analogous
#4057C0 #6940C0 #A940C0
triadic
#6940C0 #C06940 #40C069
tetradic
#6940C0 #C04057 #97C040 #40C0A9
square
#6940C0 #C04057 #97C040 #40C0A9
split-complementary
#6940C0 #C0A940 #57C040
monochromatic
#372164 #503092 #6940C0 #8D6ECF #B19CDE

Accessibility & contrast

On white

6.78
#6940C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#6940C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940C0
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940C0#FFFFFF#000000##FFFFFF
##6940C01.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC4
Deuteranopia (green-blind)
#0059BD
Tritanopia (blue-blind)
#4F5F7A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6940c0;
/* rgb */ color: rgb(105, 64, 192);
/* oklch */ color: oklch(49.2% 0.189 292.8);
Tailwind
colors: {
  custom: {
    50: '#9b77d4',
    500: '#6940c0',
    950: '#000000',
  },
}
SCSS
$custom: #6940c0;
$custom-light: #9b77d4;
$custom-dark: #000000;
JSON
{
  "hex": "#6940c0",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 192
  },
  "hsl": {
    "h": 259.219,
    "s": 50.394,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49182,
    "c": 0.18939,
    "h": 292.8
  },
  "luminance": 0.10476
}

Semantic roles & 50–950 ramp

primary
#6940C0
secondary
#B8CB91
accent
#DA4EAD
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6940C0

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

Preview Lab → · Contrast checker → · Palette generator →

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