#6845BB#6845BB

#6845BB is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.4% C 0.177 H 292.4°. Best body text is #FFFFFF at 6.65:1 contrast (WCAG AA passes).

Color values

HEX#6845BB
RGBrgb(104, 69, 187)
HSLhsl(258, 46%, 50%)
HSVhsv(258, 63%, 73%)
CMYKcmyk(44.4%, 63.1%, 0%, 26.7%)
CIE-LABlab(39.22, 42.62, -57.22)
CIE-LCHlch(39.22, 71.35, 306.68°)
OKLaboklab(49.43% 0.0673 -0.1635)
OKLCHoklch(49.43% 0.177 292.4)
XYZxyz(16.8042, 10.7866, 48.2007)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845BB #98BB45
analogous
#455DBB #6845BB #A345BB
triadic
#6845BB #BB6845 #45BB68
tetradic
#6845BB #BB455D #98BB45 #45BBA3
square
#6845BB #BB455D #98BB45 #45BBA3
split-complementary
#6845BB #BBA345 #5DBB45
monochromatic
#362462 #4F348F #6845BB #8C72CB #B19FDC

Accessibility & contrast

On white

6.65
#6845BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#6845BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845BB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845BB#FFFFFF#000000##FFFFFF
##6845BB1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBF
Deuteranopia (green-blind)
#005AB9
Tritanopia (blue-blind)
#506079
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #6845bb;
/* rgb */ color: rgb(104, 69, 187);
/* oklch */ color: oklch(49.4% 0.177 292.4);
Tailwind
colors: {
  custom: {
    50: '#997ad0',
    500: '#6845bb',
    950: '#000000',
  },
}
SCSS
$custom: #6845bb;
$custom-light: #997ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#6845bb",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 187
  },
  "hsl": {
    "h": 257.797,
    "s": 46.457,
    "l": 50.196
  },
  "oklch": {
    "l": 0.49427,
    "c": 0.17676,
    "h": 292.4
  },
  "luminance": 0.10787
}

Semantic roles & 50–950 ramp

primary
#6845BB
secondary
#B9C894
accent
#D652AF
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #6845BB

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

Preview Lab → · Contrast checker → · Palette generator →

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