#6845CD#6845CD

#6845CD is a mid, vivid violet. Relative luminance 0.116; OKLCH L 50.8% C 0.199 H 289.2°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#6845CD
RGBrgb(104, 69, 205)
HSLhsl(255, 58%, 54%)
HSVhsv(255, 66%, 80%)
CMYKcmyk(49.3%, 66.3%, 0%, 19.6%)
CIE-LABlab(40.58, 47.71, -65.49)
CIE-LCHlch(40.58, 81.02, 306.07°)
OKLaboklab(50.84% 0.0653 -0.1878)
OKLCHoklch(50.84% 0.199 289.2)
XYZxyz(18.8533, 11.6063, 58.9926)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845CD #AACD45
analogous
#4566CD #6845CD #AC45CD
triadic
#6845CD #CD6845 #45CD68
tetradic
#6845CD #CD4566 #AACD45 #45CDAC
square
#6845CD #CD4566 #AACD45 #45CDAC
split-complementary
#6845CD #CDAC45 #66CD45
monochromatic
#372077 #4D2DA8 #6845CD #8F75DA #B6A5E7

Accessibility & contrast

On white

6.32
#6845CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#6845CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845CD
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845CD#FFFFFF#000000##FFFFFF
##6845CD1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D1
Deuteranopia (green-blind)
#005CCA
Tritanopia (blue-blind)
#456783
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6845cd;
/* rgb */ color: rgb(104, 69, 205);
/* oklch */ color: oklch(50.8% 0.199 289.2);
Tailwind
colors: {
  custom: {
    50: '#9c7bdd',
    500: '#6845cd',
    950: '#000000',
  },
}
SCSS
$custom: #6845cd;
$custom-light: #9c7bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#6845cd",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 205
  },
  "hsl": {
    "h": 255.441,
    "s": 57.627,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50841,
    "c": 0.19879,
    "h": 289.2
  },
  "luminance": 0.11607
}

Semantic roles & 50–950 ramp

primary
#6845CD
secondary
#C5D49A
accent
#E147B9
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6845CD

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

Preview Lab → · Contrast checker → · Palette generator →

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