#6945BA#6945BA

#6945BA is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.5% C 0.176 H 293.0°. Best body text is #FFFFFF at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#6945BA
RGBrgb(105, 69, 186)
HSLhsl(258, 46%, 50%)
HSVhsv(258, 63%, 73%)
CMYKcmyk(43.5%, 62.9%, 0%, 27.1%)
CIE-LABlab(39.25, 42.54, -56.58)
CIE-LCHlch(39.25, 70.79, 306.94°)
OKLaboklab(49.45% 0.0687 -0.1615)
OKLCHoklch(49.45% 0.176 293)
XYZxyz(16.8143, 10.8042, 47.6444)
Luminance0.1080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6945BA #96BA45
analogous
#455BBA #6945BA #A445BA
triadic
#6945BA #BA6945 #45BA69
tetradic
#6945BA #BA455B #96BA45 #45BAA4
square
#6945BA #BA455B #96BA45 #45BAA4
split-complementary
#6945BA #BAA445 #5BBA45
monochromatic
#372461 #50348D #6945BA #8D72CB #B19EDB

Accessibility & contrast

On white

6.64
#6945BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6945BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6945BA
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6945BA#FFFFFF#000000##FFFFFF
##6945BA1.006.643.166.64
#FFFFFF6.641.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#526079
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6945ba;
/* rgb */ color: rgb(105, 69, 186);
/* oklch */ color: oklch(49.5% 0.176 293.0);
Tailwind
colors: {
  custom: {
    50: '#9a7ad0',
    500: '#6945ba',
    950: '#000000',
  },
}
SCSS
$custom: #6945ba;
$custom-light: #9a7ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#6945ba",
  "rgb": {
    "r": 105,
    "g": 69,
    "b": 186
  },
  "hsl": {
    "h": 258.462,
    "s": 45.882,
    "l": 50
  },
  "oklch": {
    "l": 0.4945,
    "c": 0.17555,
    "h": 293
  },
  "luminance": 0.10805
}

Semantic roles & 50–950 ramp

primary
#6945BA
secondary
#B7C893
accent
#D652AD
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6945BA

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

Preview Lab → · Contrast checker → · Palette generator →

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