#6940AA#6940AA

#6940AA is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.5% C 0.163 H 297.7°. Best body text is #FFFFFF at 7.21:1 contrast (WCAG AA passes).

Color values

HEX#6940AA
RGBrgb(105, 64, 170)
HSLhsl(263, 45%, 46%)
HSVhsv(263, 62%, 67%)
CMYKcmyk(38.2%, 62.4%, 0%, 33.3%)
CIE-LABlab(37.06, 40.96, -50.65)
CIE-LCHlch(37.06, 65.14, 308.96°)
OKLaboklab(47.5% 0.0756 -0.1441)
OKLCHoklch(47.5% 0.163 297.7)
XYZxyz(14.9130, 9.5721, 39.0843)
Luminance0.0957 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940AA #81AA40
analogous
#404CAA #6940AA #9E40AA
triadic
#6940AA #AA6940 #40AA69
tetradic
#6940AA #AA404C #81AA40 #40AA9E
square
#6940AA #AA404C #81AA40 #40AA9E
split-complementary
#6940AA #AA9E40 #4CAA40
monochromatic
#321F51 #4E2F7E #6940AA #8963C4 #AA8FD5

Accessibility & contrast

On white

7.21
#6940AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#6940AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6940AA#FFFFFF#000000##FFFFFF
##6940AA1.007.212.917.21
#FFFFFF7.211.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AD
Deuteranopia (green-blind)
#0E56A8
Tritanopia (blue-blind)
#5A576F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #6940aa;
/* rgb */ color: rgb(105, 64, 170);
/* oklch */ color: oklch(47.5% 0.163 297.7);
Tailwind
colors: {
  custom: {
    50: '#9877c4',
    500: '#6940aa',
    950: '#000000',
  },
}
SCSS
$custom: #6940aa;
$custom-light: #9877c4;
$custom-dark: #000000;
JSON
{
  "hex": "#6940aa",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 170
  },
  "hsl": {
    "h": 263.208,
    "s": 45.299,
    "l": 45.882
  },
  "oklch": {
    "l": 0.47501,
    "c": 0.16271,
    "h": 297.7
  },
  "luminance": 0.09572
}

Semantic roles & 50–950 ramp

primary
#6940AA
secondary
#AAC086
accent
#D553A3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6940AA

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

Preview Lab → · Contrast checker → · Palette generator →

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