#6845DC#6845DC

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

Color values

HEX#6845DC
RGBrgb(104, 69, 220)
HSLhsl(254, 68%, 57%)
HSVhsv(254, 69%, 86%)
CMYKcmyk(52.7%, 68.6%, 0%, 13.7%)
CIE-LABlab(41.79, 51.97, -72.14)
CIE-LCHlch(41.79, 88.91, 305.77°)
OKLaboklab(52.08% 0.063 -0.2073)
OKLCHoklch(52.08% 0.217 286.9)
XYZxyz(20.7515, 12.3655, 68.9896)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845DC #B9DC45
analogous
#456EDC #6845DC #B345DC
triadic
#6845DC #DC6845 #45DC68
tetradic
#6845DC #DC456E #B9DC45 #45DCB3
square
#6845DC #DC456E #B9DC45 #45DCB3
split-complementary
#6845DC #DCB345 #6EDC45
monochromatic
#351A8C #4824C0 #6845DC #9279E6 #BCACEF

Accessibility & contrast

On white

6.05
#6845DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#6845DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845DC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845DC#FFFFFF#000000##FFFFFF
##6845DC1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#005ED9
Tritanopia (blue-blind)
#396C8B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6845dc;
/* rgb */ color: rgb(104, 69, 220);
/* oklch */ color: oklch(52.1% 0.217 286.9);
Tailwind
colors: {
  custom: {
    50: '#9e7be8',
    500: '#6845dc',
    950: '#000000',
  },
}
SCSS
$custom: #6845dc;
$custom-light: #9e7be8;
$custom-dark: #000000;
JSON
{
  "hex": "#6845dc",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 220
  },
  "hsl": {
    "h": 253.907,
    "s": 68.326,
    "l": 56.667
  },
  "oklch": {
    "l": 0.52083,
    "c": 0.21666,
    "h": 286.9
  },
  "luminance": 0.12367
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6845DC

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

Preview Lab → · Contrast checker → · Palette generator →

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