#6945DC#6945DC

#6945DC is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.2% C 0.217 H 287.3°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#6945DC
RGBrgb(105, 69, 220)
HSLhsl(254, 68%, 57%)
HSVhsv(254, 69%, 86%)
CMYKcmyk(52.3%, 68.6%, 0%, 13.7%)
CIE-LABlab(41.88, 52.13, -71.98)
CIE-LCHlch(41.88, 88.88, 305.91°)
OKLaboklab(52.17% 0.0644 -0.2068)
OKLCHoklch(52.17% 0.217 287.3)
XYZxyz(20.8683, 12.4258, 68.9951)
Luminance0.1243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6945DC #B8DC45
analogous
#456DDC #6945DC #B545DC
triadic
#6945DC #DC6945 #45DC69
tetradic
#6945DC #DC456D #B8DC45 #45DCB5
square
#6945DC #DC456D #B8DC45 #45DCB5
split-complementary
#6945DC #DCB545 #6DDC45
monochromatic
#361A8C #4924C0 #6945DC #9379E6 #BCACEF

Accessibility & contrast

On white

6.03
#6945DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#6945DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6945DC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6945DC#FFFFFF#000000##FFFFFF
##6945DC1.006.033.496.03
#FFFFFF6.031.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#005FD9
Tritanopia (blue-blind)
#3C6C8B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6945dc;
/* rgb */ color: rgb(105, 69, 220);
/* oklch */ color: oklch(52.2% 0.217 287.3);
Tailwind
colors: {
  custom: {
    50: '#9e7be8',
    500: '#6945dc',
    950: '#000000',
  },
}
SCSS
$custom: #6945dc;
$custom-light: #9e7be8;
$custom-dark: #000000;
JSON
{
  "hex": "#6945dc",
  "rgb": {
    "r": 105,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 254.305,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52172,
    "c": 0.21659,
    "h": 287.3
  },
  "luminance": 0.12427
}

Semantic roles & 50–950 ramp

primary
#6945DC
secondary
#CFDDA0
accent
#EB3DC2
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #6945DC

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

Preview Lab → · Contrast checker → · Palette generator →

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