#6940AF#6940AF

#6940AF is a mid, vivid violet. Relative luminance 0.098; OKLCH L 47.9% C 0.169 H 296.5°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#6940AF
RGBrgb(105, 64, 175)
HSLhsl(262, 46%, 47%)
HSVhsv(262, 63%, 69%)
CMYKcmyk(40%, 63.4%, 0%, 31.4%)
CIE-LABlab(37.42, 42.31, -53.05)
CIE-LCHlch(37.42, 67.86, 308.57°)
OKLaboklab(47.87% 0.0753 -0.1512)
OKLCHoklch(47.87% 0.169 296.5)
XYZxyz(15.3950, 9.7649, 41.6228)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940AF #86AF40
analogous
#404FAF #6940AF #A140AF
triadic
#6940AF #AF6940 #40AF69
tetradic
#6940AF #AF404F #86AF40 #40AFA1
square
#6940AF #AF404F #86AF40 #40AFA1
split-complementary
#6940AF #AFA140 #4FAF40
monochromatic
#331F55 #4E3082 #6940AF #8965C7 #AC92D7

Accessibility & contrast

On white

7.11
#6940AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#6940AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6940AF#FFFFFF#000000##FFFFFF
##6940AF1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B2
Deuteranopia (green-blind)
#0057AD
Tritanopia (blue-blind)
#585971
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #6940af;
/* rgb */ color: rgb(105, 64, 175);
/* oklch */ color: oklch(47.9% 0.169 296.5);
Tailwind
colors: {
  custom: {
    50: '#9977c8',
    500: '#6940af',
    950: '#000000',
  },
}
SCSS
$custom: #6940af;
$custom-light: #9977c8;
$custom-dark: #000000;
JSON
{
  "hex": "#6940af",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 175
  },
  "hsl": {
    "h": 262.162,
    "s": 46.444,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4787,
    "c": 0.16885,
    "h": 296.5
  },
  "luminance": 0.09765
}

Semantic roles & 50–950 ramp

primary
#6940AF
secondary
#ADC388
accent
#D652A5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6940AF

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

Preview Lab → · Contrast checker → · Palette generator →

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