#6845CC#6845CC

#6845CC is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.198 H 289.3°. Best body text is #FFFFFF at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#6845CC
RGBrgb(104, 69, 204)
HSLhsl(256, 57%, 54%)
HSVhsv(256, 66%, 80%)
CMYKcmyk(49%, 66.2%, 0%, 20%)
CIE-LABlab(40.51, 47.42, -65.04)
CIE-LCHlch(40.51, 80.49, 306.10°)
OKLaboklab(50.76% 0.0654 -0.1864)
OKLCHoklch(50.76% 0.198 289.3)
XYZxyz(18.7330, 11.5581, 58.3589)
Luminance0.1156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845CC #A9CC45
analogous
#4565CC #6845CC #AC45CC
triadic
#6845CC #CC6845 #45CC68
tetradic
#6845CC #CC4565 #A9CC45 #45CCAC
square
#6845CC #CC4565 #A9CC45 #45CCAC
split-complementary
#6845CC #CCAC45 #65CC45
monochromatic
#372076 #4D2EA6 #6845CC #8F75D9 #B6A5E6

Accessibility & contrast

On white

6.34
#6845CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#6845CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845CC
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845CC#FFFFFF#000000##FFFFFF
##6845CC1.006.343.316.34
#FFFFFF6.341.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D0
Deuteranopia (green-blind)
#005CC9
Tritanopia (blue-blind)
#466683
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6845cc;
/* rgb */ color: rgb(104, 69, 204);
/* oklch */ color: oklch(50.8% 0.198 289.3);
Tailwind
colors: {
  custom: {
    50: '#9b7bdd',
    500: '#6845cc',
    950: '#000000',
  },
}
SCSS
$custom: #6845cc;
$custom-light: #9b7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#6845cc",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 204
  },
  "hsl": {
    "h": 255.556,
    "s": 56.962,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50761,
    "c": 0.19758,
    "h": 289.3
  },
  "luminance": 0.11559
}

Semantic roles & 50–950 ramp

primary
#6845CC
secondary
#C4D399
accent
#E048B9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6845CC

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

Preview Lab → · Contrast checker → · Palette generator →

#6845CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva