#6940C8#6940C8

#6940C8 is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.8% C 0.199 H 291.3°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#6940C8
RGBrgb(105, 64, 200)
HSLhsl(258, 55%, 52%)
HSVhsv(258, 68%, 78%)
CMYKcmyk(47.5%, 68%, 0%, 21.6%)
CIE-LABlab(39.31, 49.16, -64.66)
CIE-LCHlch(39.31, 81.23, 307.25°)
OKLaboklab(49.83% 0.0723 -0.1853)
OKLCHoklch(49.83% 0.199 291.3)
XYZxyz(18.0815, 10.8395, 55.7719)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940C8 #9FC840
analogous
#405BC8 #6940C8 #AD40C8
triadic
#6940C8 #C86940 #40C869
tetradic
#6940C8 #C8405B #9FC840 #40C8AD
square
#6940C8 #C8405B #9FC840 #40C8AD
split-complementary
#6940C8 #C8AD40 #5BC840
monochromatic
#37206E #4F2D9D #6940C8 #8E70D6 #B49FE3

Accessibility & contrast

On white

6.63
#6940C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6940C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940C8
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940C8#FFFFFF#000000##FFFFFF
##6940C81.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#4B627F
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6940c8;
/* rgb */ color: rgb(105, 64, 200);
/* oklch */ color: oklch(49.8% 0.199 291.3);
Tailwind
colors: {
  custom: {
    50: '#9c78da',
    500: '#6940c8',
    950: '#000000',
  },
}
SCSS
$custom: #6940c8;
$custom-light: #9c78da;
$custom-dark: #000000;
JSON
{
  "hex": "#6940c8",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 200
  },
  "hsl": {
    "h": 258.088,
    "s": 55.285,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49827,
    "c": 0.19888,
    "h": 291.3
  },
  "luminance": 0.1084
}

Semantic roles & 50–950 ramp

primary
#6940C8
secondary
#BED094
accent
#DF49B2
background
#FAF7FD
surface
#F4EDFB
border
#CEC8D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6940C8

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

Preview Lab → · Contrast checker → · Palette generator →

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