#6945C2#6945C2

#6945C2 is a mid, vivid violet. Relative luminance 0.112; OKLCH L 50.1% C 0.185 H 291.5°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#6945C2
RGBrgb(105, 69, 194)
HSLhsl(257, 51%, 52%)
HSVhsv(257, 64%, 76%)
CMYKcmyk(45.9%, 64.4%, 0%, 23.9%)
CIE-LABlab(39.84, 44.78, -60.31)
CIE-LCHlch(39.84, 75.12, 306.60°)
OKLaboklab(50.06% 0.068 -0.1725)
OKLCHoklch(50.06% 0.185 291.5)
XYZxyz(17.6887, 11.1539, 52.2494)
Luminance0.1115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6945C2 #9EC245
analogous
#4560C2 #6945C2 #A845C2
triadic
#6945C2 #C26945 #45C269
tetradic
#6945C2 #C24560 #9EC245 #45C2A8
square
#6945C2 #C24560 #9EC245 #45C2A8
split-complementary
#6945C2 #C2A845 #60C245
monochromatic
#37236A #4F3298 #6945C2 #8E73D1 #B3A1E0

Accessibility & contrast

On white

6.50
#6945C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#6945C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6945C2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6945C2#FFFFFF#000000##FFFFFF
##6945C21.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C6
Deuteranopia (green-blind)
#005BBF
Tritanopia (blue-blind)
#4E637D
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #6945c2;
/* rgb */ color: rgb(105, 69, 194);
/* oklch */ color: oklch(50.1% 0.185 291.5);
Tailwind
colors: {
  custom: {
    50: '#9b7bd5',
    500: '#6945c2',
    950: '#000000',
  },
}
SCSS
$custom: #6945c2;
$custom-light: #9b7bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#6945c2",
  "rgb": {
    "r": 105,
    "g": 69,
    "b": 194
  },
  "hsl": {
    "h": 257.28,
    "s": 50.607,
    "l": 51.569
  },
  "oklch": {
    "l": 0.50063,
    "c": 0.18542,
    "h": 291.5
  },
  "luminance": 0.11155
}

Semantic roles & 50–950 ramp

primary
#6945C2
secondary
#BDCD96
accent
#DA4EB2
background
#FAF7FD
surface
#F3EEFA
border
#CDC9D3
text
#0F0914
muted
#7F7B83

Preview Lab

Preview with #6945C2

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

Preview Lab → · Contrast checker → · Palette generator →

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