#6845D2#6845D2

#6845D2 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.2% C 0.205 H 288.4°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#6845D2
RGBrgb(104, 69, 210)
HSLhsl(255, 61%, 55%)
HSVhsv(255, 67%, 82%)
CMYKcmyk(50.5%, 67.1%, 0%, 17.6%)
CIE-LABlab(40.98, 49.13, -67.73)
CIE-LCHlch(40.98, 83.67, 305.96°)
OKLaboklab(51.25% 0.0646 -0.1943)
OKLCHoklch(51.25% 0.205 288.4)
XYZxyz(19.4665, 11.8516, 62.2221)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845D2 #AFD245
analogous
#4568D2 #6845D2 #AF45D2
triadic
#6845D2 #D26845 #45D268
tetradic
#6845D2 #D24568 #AFD245 #45D2AF
square
#6845D2 #D24568 #AFD245 #45D2AF
split-complementary
#6845D2 #D2AF45 #68D245
monochromatic
#361F7E #4B2AAF #6845D2 #9076DE #B8A8EA

Accessibility & contrast

On white

6.23
#6845D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#6845D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845D2
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845D2#FFFFFF#000000##FFFFFF
##6845D21.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D6
Deuteranopia (green-blind)
#005DCF
Tritanopia (blue-blind)
#426886
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6845d2;
/* rgb */ color: rgb(104, 69, 210);
/* oklch */ color: oklch(51.2% 0.205 288.4);
Tailwind
colors: {
  custom: {
    50: '#9c7be1',
    500: '#6845d2',
    950: '#000000',
  },
}
SCSS
$custom: #6845d2;
$custom-light: #9c7be1;
$custom-dark: #000000;
JSON
{
  "hex": "#6845d2",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 210
  },
  "hsl": {
    "h": 254.894,
    "s": 61.039,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51249,
    "c": 0.20479,
    "h": 288.4
  },
  "luminance": 0.11852
}

Semantic roles & 50–950 ramp

primary
#6845D2
secondary
#C8D79C
accent
#E444BC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6845D2

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

Preview Lab → · Contrast checker → · Palette generator →

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