#6845D6#6845D6

#6845D6 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 51.6% C 0.210 H 287.8°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#6845D6
RGBrgb(104, 69, 214)
HSLhsl(254, 64%, 55%)
HSVhsv(254, 68%, 84%)
CMYKcmyk(51.4%, 67.8%, 0%, 16.1%)
CIE-LABlab(41.30, 50.27, -69.50)
CIE-LCHlch(41.30, 85.77, 305.87°)
OKLaboklab(51.58% 0.064 -0.1995)
OKLCHoklch(51.58% 0.21 287.8)
XYZxyz(19.9711, 12.0534, 64.8795)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845D6 #B3D645
analogous
#456AD6 #6845D6 #B145D6
triadic
#6845D6 #D66845 #45D668
tetradic
#6845D6 #D6456A #B3D645 #45D6B1
square
#6845D6 #D6456A #B3D645 #45D6B1
split-complementary
#6845D6 #D6B145 #6AD645
monochromatic
#361D84 #4A28B6 #6845D6 #9177E1 #B9A9EC

Accessibility & contrast

On white

6.16
#6845D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#6845D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845D6
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845D6#FFFFFF#000000##FFFFFF
##6845D61.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DA
Deuteranopia (green-blind)
#005DD3
Tritanopia (blue-blind)
#3F6A88
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6845d6;
/* rgb */ color: rgb(104, 69, 214);
/* oklch */ color: oklch(51.6% 0.210 287.8);
Tailwind
colors: {
  custom: {
    50: '#9d7be4',
    500: '#6845d6',
    950: '#000000',
  },
}
SCSS
$custom: #6845d6;
$custom-light: #9d7be4;
$custom-dark: #000000;
JSON
{
  "hex": "#6845d6",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 214
  },
  "hsl": {
    "h": 254.483,
    "s": 63.877,
    "l": 55.49
  },
  "oklch": {
    "l": 0.5158,
    "c": 0.20956,
    "h": 287.8
  },
  "luminance": 0.12054
}

Semantic roles & 50–950 ramp

primary
#6845D6
secondary
#CBDA9D
accent
#E741BF
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6845D6

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

Preview Lab → · Contrast checker → · Palette generator →

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