#6845BC#6845BC

#6845BC is a mid, vivid violet. Relative luminance 0.108; OKLCH L 49.5% C 0.178 H 292.2°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#6845BC
RGBrgb(104, 69, 188)
HSLhsl(258, 47%, 50%)
HSVhsv(258, 63%, 74%)
CMYKcmyk(44.7%, 63.3%, 0%, 26.3%)
CIE-LABlab(39.29, 42.90, -57.69)
CIE-LCHlch(39.29, 71.89, 306.63°)
OKLaboklab(49.5% 0.0672 -0.1648)
OKLCHoklch(49.5% 0.178 292.2)
XYZxyz(16.9116, 10.8296, 48.7665)
Luminance0.1083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845BC #99BC45
analogous
#455DBC #6845BC #A345BC
triadic
#6845BC #BC6845 #45BC68
tetradic
#6845BC #BC455D #99BC45 #45BCA3
square
#6845BC #BC455D #99BC45 #45BCA3
split-complementary
#6845BC #BCA345 #5DBC45
monochromatic
#362463 #4F3490 #6845BC #8D72CC #B19FDC

Accessibility & contrast

On white

6.63
#6845BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#6845BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845BC
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845BC#FFFFFF#000000##FFFFFF
##6845BC1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#005ABA
Tritanopia (blue-blind)
#50617A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6845bc;
/* rgb */ color: rgb(104, 69, 188);
/* oklch */ color: oklch(49.5% 0.178 292.2);
Tailwind
colors: {
  custom: {
    50: '#997ad1',
    500: '#6845bc',
    950: '#000000',
  },
}
SCSS
$custom: #6845bc;
$custom-light: #997ad1;
$custom-dark: #000000;
JSON
{
  "hex": "#6845bc",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 188
  },
  "hsl": {
    "h": 257.647,
    "s": 47.036,
    "l": 50.392
  },
  "oklch": {
    "l": 0.49503,
    "c": 0.178,
    "h": 292.2
  },
  "luminance": 0.1083
}

Semantic roles & 50–950 ramp

primary
#6845BC
secondary
#B9C994
accent
#D751AF
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0F0914
muted
#7E7B82

Preview Lab

Preview with #6845BC

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

Preview Lab → · Contrast checker → · Palette generator →

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