#6940C2#6940C2

#6940C2 is a mid, vivid violet. Relative luminance 0.106; OKLCH L 49.3% C 0.192 H 292.4°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#6940C2
RGBrgb(105, 64, 194)
HSLhsl(259, 52%, 51%)
HSVhsv(259, 67%, 76%)
CMYKcmyk(45.9%, 67%, 0%, 23.9%)
CIE-LABlab(38.84, 47.51, -61.94)
CIE-LCHlch(38.84, 78.06, 307.49°)
OKLaboklab(49.34% 0.0732 -0.1773)
OKLCHoklch(49.34% 0.192 292.4)
XYZxyz(17.3940, 10.5645, 52.1512)
Luminance0.1056 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940C2 #99C240
analogous
#4058C2 #6940C2 #AA40C2
triadic
#6940C2 #C26940 #40C269
tetradic
#6940C2 #C24058 #99C240 #40C2AA
square
#6940C2 #C24058 #99C240 #40C2AA
split-complementary
#6940C2 #C2AA40 #58C240
monochromatic
#372167 #503095 #6940C2 #8D6ED1 #B29DE0

Accessibility & contrast

On white

6.75
#6940C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#6940C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940C2
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940C2#FFFFFF#000000##FFFFFF
##6940C21.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#4E607C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6940c2;
/* rgb */ color: rgb(105, 64, 194);
/* oklch */ color: oklch(49.3% 0.192 292.4);
Tailwind
colors: {
  custom: {
    50: '#9b78d5',
    500: '#6940c2',
    950: '#000000',
  },
}
SCSS
$custom: #6940c2;
$custom-light: #9b78d5;
$custom-dark: #000000;
JSON
{
  "hex": "#6940c2",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 258.923,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.49341,
    "c": 0.19178,
    "h": 292.4
  },
  "luminance": 0.10565
}

Semantic roles & 50–950 ramp

primary
#6940C2
secondary
#BACC92
accent
#DB4DAE
background
#FAF7FD
surface
#F3EDFA
border
#CDC8D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6940C2

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

Preview Lab → · Contrast checker → · Palette generator →

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