#6845DF#6845DF

#6845DF is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.3% C 0.220 H 286.5°. Best body text is #FFFFFF at 5.99:1 contrast (WCAG AA passes).

Color values

HEX#6845DF
RGBrgb(104, 69, 223)
HSLhsl(254, 71%, 57%)
HSVhsv(254, 69%, 87%)
CMYKcmyk(53.4%, 69.1%, 0%, 12.5%)
CIE-LABlab(42.04, 52.83, -73.45)
CIE-LCHlch(42.04, 90.47, 305.73°)
OKLaboklab(52.34% 0.0625 -0.2111)
OKLCHoklch(52.34% 0.22 286.5)
XYZxyz(21.1524, 12.5259, 71.1009)
Luminance0.1253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845DF #BCDF45
analogous
#456FDF #6845DF #B545DF
triadic
#6845DF #DF6845 #45DF68
tetradic
#6845DF #DF456F #BCDF45 #45DFB5
square
#6845DF #DF456F #BCDF45 #45DFB5
split-complementary
#6845DF #DFB545 #6FDF45
monochromatic
#341991 #4722C5 #6845DF #9279E8 #BDADF1

Accessibility & contrast

On white

5.99
#6845DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#6845DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845DF
5.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845DF#FFFFFF#000000##FFFFFF
##6845DF1.005.993.515.99
#FFFFFF5.991.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E4
Deuteranopia (green-blind)
#005FDC
Tritanopia (blue-blind)
#366D8D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #6845df;
/* rgb */ color: rgb(104, 69, 223);
/* oklch */ color: oklch(52.3% 0.220 286.5);
Tailwind
colors: {
  custom: {
    50: '#9e7bea',
    500: '#6845df',
    950: '#000000',
  },
}
SCSS
$custom: #6845df;
$custom-light: #9e7bea;
$custom-dark: #000000;
JSON
{
  "hex": "#6845df",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 223
  },
  "hsl": {
    "h": 253.636,
    "s": 70.642,
    "l": 57.255
  },
  "oklch": {
    "l": 0.52337,
    "c": 0.22017,
    "h": 286.5
  },
  "luminance": 0.12527
}

Semantic roles & 50–950 ramp

primary
#6845DF
secondary
#D1DFA1
accent
#ED3AC5
background
#FAF7FE
surface
#F4EEFD
border
#CEC9D5
text
#100A16
muted
#7F7C84

Preview Lab

Preview with #6845DF

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

Preview Lab → · Contrast checker → · Palette generator →

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