#6940B2#6940B2

#6940B2 is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.1% C 0.173 H 295.8°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#6940B2
RGBrgb(105, 64, 178)
HSLhsl(262, 47%, 47%)
HSVhsv(262, 64%, 70%)
CMYKcmyk(41%, 64%, 0%, 30.2%)
CIE-LABlab(37.63, 43.12, -54.48)
CIE-LCHlch(37.63, 69.48, 308.36°)
OKLaboklab(48.1% 0.075 -0.1554)
OKLCHoklch(48.1% 0.173 295.8)
XYZxyz(15.6929, 9.8841, 43.1919)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940B2 #89B240
analogous
#4050B2 #6940B2 #A240B2
triadic
#6940B2 #B26940 #40B269
tetradic
#6940B2 #B24050 #89B240 #40B2A2
square
#6940B2 #B24050 #89B240 #40B2A2
split-complementary
#6940B2 #B2A240 #50B240
monochromatic
#342058 #4E3085 #6940B2 #8A67C8 #AD94D8

Accessibility & contrast

On white

7.05
#6940B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#6940B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6940B2#FFFFFF#000000##FFFFFF
##6940B21.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#0057B0
Tritanopia (blue-blind)
#565A73
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #6940b2;
/* rgb */ color: rgb(105, 64, 178);
/* oklch */ color: oklch(48.1% 0.173 295.8);
Tailwind
colors: {
  custom: {
    50: '#9977ca',
    500: '#6940b2',
    950: '#000000',
  },
}
SCSS
$custom: #6940b2;
$custom-light: #9977ca;
$custom-dark: #000000;
JSON
{
  "hex": "#6940b2",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 178
  },
  "hsl": {
    "h": 261.579,
    "s": 47.107,
    "l": 47.451
  },
  "oklch": {
    "l": 0.48095,
    "c": 0.17252,
    "h": 295.8
  },
  "luminance": 0.09884
}

Semantic roles & 50–950 ramp

primary
#6940B2
secondary
#AFC48A
accent
#D751A7
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6940B2

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

Preview Lab → · Contrast checker → · Palette generator →

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