#6940B5#6940B5

#6940B5 is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.176 H 295.1°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#6940B5
RGBrgb(105, 64, 181)
HSLhsl(261, 48%, 48%)
HSVhsv(261, 65%, 71%)
CMYKcmyk(42%, 64.6%, 0%, 29%)
CIE-LABlab(37.85, 43.94, -55.90)
CIE-LCHlch(37.85, 71.10, 308.17°)
OKLaboklab(48.32% 0.0747 -0.1595)
OKLCHoklch(48.32% 0.176 295.1)
XYZxyz(15.9974, 10.0059, 44.7956)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940B5 #8CB540
analogous
#4051B5 #6940B5 #A340B5
triadic
#6940B5 #B56940 #40B569
tetradic
#6940B5 #B54051 #8CB540 #40B5A3
square
#6940B5 #B54051 #8CB540 #40B5A3
split-complementary
#6940B5 #B5A340 #51B540
monochromatic
#35205B #4F3088 #6940B5 #8B68CA #AE96DA

Accessibility & contrast

On white

7.00
#6940B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#6940B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6940B5#FFFFFF#000000##FFFFFF
##6940B51.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB9
Deuteranopia (green-blind)
#0057B3
Tritanopia (blue-blind)
#555B75
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6940b5;
/* rgb */ color: rgb(105, 64, 181);
/* oklch */ color: oklch(48.3% 0.176 295.1);
Tailwind
colors: {
  custom: {
    50: '#9a77cc',
    500: '#6940b5',
    950: '#000000',
  },
}
SCSS
$custom: #6940b5;
$custom-light: #9a77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#6940b5",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 181
  },
  "hsl": {
    "h": 261.026,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.48323,
    "c": 0.17616,
    "h": 295.1
  },
  "luminance": 0.10006
}

Semantic roles & 50–950 ramp

primary
#6940B5
secondary
#B1C58B
accent
#D750A8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6940B5

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

Preview Lab → · Contrast checker → · Palette generator →

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