#6940B9#6940B9

#6940B9 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.6% C 0.181 H 294.2°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6940B9
RGBrgb(105, 64, 185)
HSLhsl(260, 49%, 49%)
HSVhsv(260, 65%, 73%)
CMYKcmyk(43.2%, 65.4%, 0%, 27.5%)
CIE-LABlab(38.15, 45.03, -57.78)
CIE-LCHlch(38.15, 73.25, 307.93°)
OKLaboklab(48.63% 0.0743 -0.165)
OKLCHoklch(48.63% 0.181 294.2)
XYZxyz(16.4137, 10.1724, 46.9882)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6940B9 #90B940
analogous
#4054B9 #6940B9 #A640B9
triadic
#6940B9 #B96940 #40B969
tetradic
#6940B9 #B94054 #90B940 #40B9A6
square
#6940B9 #B94054 #90B940 #40B9A6
split-complementary
#6940B9 #B9A640 #54B940
monochromatic
#35215E #4F308C #6940B9 #8B6BCC #AF98DB

Accessibility & contrast

On white

6.92
#6940B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#6940B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##6940B9#FFFFFF#000000##FFFFFF
##6940B91.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #6940b9;
/* rgb */ color: rgb(105, 64, 185);
/* oklch */ color: oklch(48.6% 0.181 294.2);
Tailwind
colors: {
  custom: {
    50: '#9a77cf',
    500: '#6940b9',
    950: '#000000',
  },
}
SCSS
$custom: #6940b9;
$custom-light: #9a77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#6940b9",
  "rgb": {
    "r": 105,
    "g": 64,
    "b": 185
  },
  "hsl": {
    "h": 260.331,
    "s": 48.594,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48631,
    "c": 0.181,
    "h": 294.2
  },
  "luminance": 0.10173
}

Semantic roles & 50–950 ramp

primary
#6940B9
secondary
#B4C78E
accent
#D850AA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6940B9

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

Preview Lab → · Contrast checker → · Palette generator →

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