#6945DB#6945DB

#6945DB is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.1% C 0.215 H 287.4°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#6945DB
RGBrgb(105, 69, 219)
HSLhsl(254, 68%, 56%)
HSVhsv(254, 68%, 86%)
CMYKcmyk(52.1%, 68.5%, 0%, 14.1%)
CIE-LABlab(41.80, 51.85, -71.55)
CIE-LCHlch(41.80, 88.36, 305.93°)
OKLaboklab(52.09% 0.0646 -0.2055)
OKLCHoklch(52.09% 0.215 287.4)
XYZxyz(20.7362, 12.3729, 68.2997)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6945DB #B7DB45
analogous
#456CDB #6945DB #B445DB
triadic
#6945DB #DB6945 #45DB69
tetradic
#6945DB #DB456C #B7DB45 #45DBB4
square
#6945DB #DB456C #B7DB45 #45DBB4
split-complementary
#6945DB #DBB445 #6CDB45
monochromatic
#361B8B #4A25BE #6945DB #9278E5 #BCACEF

Accessibility & contrast

On white

6.04
#6945DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#6945DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6945DB
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6945DB#FFFFFF#000000##FFFFFF
##6945DB1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E0
Deuteranopia (green-blind)
#005ED8
Tritanopia (blue-blind)
#3D6C8B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6945db;
/* rgb */ color: rgb(105, 69, 219);
/* oklch */ color: oklch(52.1% 0.215 287.4);
Tailwind
colors: {
  custom: {
    50: '#9e7be7',
    500: '#6945db',
    950: '#000000',
  },
}
SCSS
$custom: #6945db;
$custom-light: #9e7be7;
$custom-dark: #000000;
JSON
{
  "hex": "#6945db",
  "rgb": {
    "r": 105,
    "g": 69,
    "b": 219
  },
  "hsl": {
    "h": 254.4,
    "s": 67.568,
    "l": 56.471
  },
  "oklch": {
    "l": 0.52088,
    "c": 0.21541,
    "h": 287.4
  },
  "luminance": 0.12374
}

Semantic roles & 50–950 ramp

primary
#6945DB
secondary
#CEDD9F
accent
#EA3DC1
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #6945DB

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

Preview Lab → · Contrast checker → · Palette generator →

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