#6940E2#6940E2

#6940E2 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.0% C 0.229 H 287.1°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#6940E2
RGBrgb(105, 64, 226)
HSLhsl(255, 74%, 57%)
HSVhsv(255, 72%, 89%)
CMYKcmyk(53.5%, 71.7%, 0%, 11.4%)
CIE-LABlab(41.47, 56.38, -76.09)
CIE-LCHlch(41.47, 94.70, 306.54°)
OKLaboklab(52.03% 0.0674 -0.2188)
OKLCHoklch(52.03% 0.229 287.1)
XYZxyz(21.3825, 12.1599, 73.1572)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940E2 #B9E240
analogous
#4068E2 #6940E2 #BA40E2
triadic
#6940E2 #E26940 #40E269
tetradic
#6940E2 #E24068 #B9E240 #40E2BA
square
#6940E2 #E24068 #B9E240 #40E2BA
split-complementary
#6940E2 #E2BA40 #68E240
monochromatic
#351692 #491EC7 #6940E2 #9375EA #BCAAF2

Accessibility & contrast

On white

6.12
#6940E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6940E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6940E2
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940E2#FFFFFF#000000##FFFFFF
##6940E21.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E7
Deuteranopia (green-blind)
#005DDF
Tritanopia (blue-blind)
#366C8D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6940e2;
/* rgb */ color: rgb(105, 64, 226);
/* oklch */ color: oklch(52.0% 0.229 287.1);
Tailwind
colors: {
  custom: {
    50: '#9f79ec',
    500: '#6940e2',
    950: '#000000',
  },
}
SCSS
$custom: #6940e2;
$custom-light: #9f79ec;
$custom-dark: #000000;
JSON
{
  "hex": "#6940e2",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 226
  },
  "hsl": {
    "h": 255.185,
    "s": 73.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52032,
    "c": 0.22895,
    "h": 287.1
  },
  "luminance": 0.12161
}

Semantic roles & 50–950 ramp

primary
#6940E2
secondary
#CFE09E
accent
#F038C2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100916
muted
#7F7B84

Preview Lab

Preview with #6940E2

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

Preview Lab → · Contrast checker → · Palette generator →

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