#6940A4#6940A4

#6940A4 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.1% C 0.155 H 299.2°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#6940A4
RGBrgb(105, 64, 164)
HSLhsl(265, 44%, 45%)
HSVhsv(265, 61%, 64%)
CMYKcmyk(36%, 61%, 0%, 35.7%)
CIE-LABlab(36.65, 39.35, -47.73)
CIE-LCHlch(36.65, 61.86, 309.51°)
OKLaboklab(47.07% 0.0759 -0.1355)
OKLCHoklch(47.07% 0.155 299.2)
XYZxyz(14.3583, 9.3502, 36.1631)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940A4 #7BA440
analogous
#4049A4 #6940A4 #9B40A4
triadic
#6940A4 #A46940 #40A469
tetradic
#6940A4 #A44049 #7BA440 #40A49B
square
#6940A4 #A44049 #7BA440 #40A49B
split-complementary
#6940A4 #A49B40 #49A440
monochromatic
#311E4C #4D2F78 #6940A4 #8860C1 #A98CD2

Accessibility & contrast

On white

7.32
#6940A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#6940A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #6940A4
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6940A4#FFFFFF#000000##FFFFFF
##6940A41.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056A7
Deuteranopia (green-blind)
#1C55A2
Tritanopia (blue-blind)
#5C556C
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #6940a4;
/* rgb */ color: rgb(105, 64, 164);
/* oklch */ color: oklch(47.1% 0.155 299.2);
Tailwind
colors: {
  custom: {
    50: '#9877c0',
    500: '#6940a4',
    950: '#000000',
  },
}
SCSS
$custom: #6940a4;
$custom-light: #9877c0;
$custom-dark: #000000;
JSON
{
  "hex": "#6940a4",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 164
  },
  "hsl": {
    "h": 264.6,
    "s": 43.86,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47068,
    "c": 0.15531,
    "h": 299.2
  },
  "luminance": 0.0935
}

Semantic roles & 50–950 ramp

primary
#6940A4
secondary
#A5BD83
accent
#D4549F
background
#F9F7FB
surface
#F2EDF7
border
#CCC8D0
text
#0E0912
muted
#7E7B81

Preview Lab

Preview with #6940A4

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

Preview Lab → · Contrast checker → · Palette generator →

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