#6940BA#6940BA

#6940BA is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.7% C 0.182 H 294.0°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#6940BA
RGBrgb(105, 64, 186)
HSLhsl(260, 49%, 49%)
HSVhsv(260, 66%, 73%)
CMYKcmyk(43.5%, 65.6%, 0%, 27.1%)
CIE-LABlab(38.23, 45.30, -58.24)
CIE-LCHlch(38.23, 73.79, 307.88°)
OKLaboklab(48.71% 0.0742 -0.1664)
OKLCHoklch(48.71% 0.182 294)
XYZxyz(16.5196, 10.2148, 47.5461)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940BA #91BA40
analogous
#4054BA #6940BA #A640BA
triadic
#6940BA #BA6940 #40BA69
tetradic
#6940BA #BA4054 #91BA40 #40BAA6
square
#6940BA #BA4054 #91BA40 #40BAA6
split-complementary
#6940BA #BAA640 #54BA40
monochromatic
#36215F #4F308C #6940BA #8C6BCC #AF99DC

Accessibility & contrast

On white

6.90
#6940BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6940BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6940BA#FFFFFF#000000##FFFFFF
##6940BA1.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBE
Deuteranopia (green-blind)
#0058B7
Tritanopia (blue-blind)
#535D77
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6940ba;
/* rgb */ color: rgb(105, 64, 186);
/* oklch */ color: oklch(48.7% 0.182 294.0);
Tailwind
colors: {
  custom: {
    50: '#9a77d0',
    500: '#6940ba',
    950: '#000000',
  },
}
SCSS
$custom: #6940ba;
$custom-light: #9a77d0;
$custom-dark: #000000;
JSON
{
  "hex": "#6940ba",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 186
  },
  "hsl": {
    "h": 260.164,
    "s": 48.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.48709,
    "c": 0.1822,
    "h": 294
  },
  "luminance": 0.10215
}

Semantic roles & 50–950 ramp

primary
#6940BA
secondary
#B4C88E
accent
#D84FAA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6940BA

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

Preview Lab → · Contrast checker → · Palette generator →

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