#6845D1#6845D1

#6845D1 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.2% C 0.204 H 288.5°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#6845D1
RGBrgb(104, 69, 209)
HSLhsl(255, 60%, 55%)
HSVhsv(255, 67%, 82%)
CMYKcmyk(50.2%, 67%, 0%, 18%)
CIE-LABlab(40.90, 48.84, -67.28)
CIE-LCHlch(40.90, 83.14, 305.98°)
OKLaboklab(51.17% 0.0647 -0.193)
OKLCHoklch(51.17% 0.204 288.5)
XYZxyz(19.3423, 11.8019, 61.5681)
Luminance0.1180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845D1 #AED145
analogous
#4568D1 #6845D1 #AE45D1
triadic
#6845D1 #D16845 #45D168
tetradic
#6845D1 #D14568 #AED145 #45D1AE
square
#6845D1 #D14568 #AED145 #45D1AE
split-complementary
#6845D1 #D1AE45 #68D145
monochromatic
#361F7D #4C2BAE #6845D1 #9076DD #B8A7E9

Accessibility & contrast

On white

6.25
#6845D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#6845D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845D1
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845D1#FFFFFF#000000##FFFFFF
##6845D11.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D5
Deuteranopia (green-blind)
#005DCE
Tritanopia (blue-blind)
#426885
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6845d1;
/* rgb */ color: rgb(104, 69, 209);
/* oklch */ color: oklch(51.2% 0.204 288.5);
Tailwind
colors: {
  custom: {
    50: '#9c7be0',
    500: '#6845d1',
    950: '#000000',
  },
}
SCSS
$custom: #6845d1;
$custom-light: #9c7be0;
$custom-dark: #000000;
JSON
{
  "hex": "#6845d1",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 209
  },
  "hsl": {
    "h": 255,
    "s": 60.345,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51167,
    "c": 0.2036,
    "h": 288.5
  },
  "luminance": 0.11803
}

Semantic roles & 50–950 ramp

primary
#6845D1
secondary
#C8D79B
accent
#E344BC
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6845D1

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

Preview Lab → · Contrast checker → · Palette generator →

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