#6845BE#6845BE

#6845BE is a mid, vivid violet. Relative luminance 0.109; OKLCH L 49.7% C 0.180 H 291.8°. Best body text is #FFFFFF at 6.60:1 contrast (WCAG AA passes).

Color values

HEX#6845BE
RGBrgb(104, 69, 190)
HSLhsl(257, 48%, 51%)
HSVhsv(257, 64%, 75%)
CMYKcmyk(45.3%, 63.7%, 0%, 25.5%)
CIE-LABlab(39.44, 43.46, -58.62)
CIE-LCHlch(39.44, 72.97, 306.55°)
OKLaboklab(49.66% 0.067 -0.1676)
OKLCHoklch(49.66% 0.18 291.8)
XYZxyz(17.1287, 10.9164, 49.9098)
Luminance0.1092 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845BE #9BBE45
analogous
#455EBE #6845BE #A445BE
triadic
#6845BE #BE6845 #45BE68
tetradic
#6845BE #BE455E #9BBE45 #45BEA4
square
#6845BE #BE455E #9BBE45 #45BEA4
split-complementary
#6845BE #BEA445 #5EBE45
monochromatic
#362365 #4F3393 #6845BE #8D72CE #B2A0DE

Accessibility & contrast

On white

6.60
#6845BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#6845BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845BE
6.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845BE#FFFFFF#000000##FFFFFF
##6845BE1.006.603.186.60
#FFFFFF6.601.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC2
Deuteranopia (green-blind)
#005ABB
Tritanopia (blue-blind)
#4E617B
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #6845be;
/* rgb */ color: rgb(104, 69, 190);
/* oklch */ color: oklch(49.7% 0.180 291.8);
Tailwind
colors: {
  custom: {
    50: '#9a7ad2',
    500: '#6845be',
    950: '#000000',
  },
}
SCSS
$custom: #6845be;
$custom-light: #9a7ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#6845be",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 190
  },
  "hsl": {
    "h": 257.355,
    "s": 48.207,
    "l": 50.784
  },
  "oklch": {
    "l": 0.49657,
    "c": 0.18047,
    "h": 291.8
  },
  "luminance": 0.10917
}

Semantic roles & 50–950 ramp

primary
#6845BE
secondary
#BBCA95
accent
#D850B1
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0F0914
muted
#7E7B83

Preview Lab

Preview with #6845BE

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

Preview Lab → · Contrast checker → · Palette generator →

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