#6845AE#6845AE

#6845AE is a mid, vivid violet. Relative luminance 0.103; OKLCH L 48.5% C 0.160 H 295.1°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#6845AE
RGBrgb(104, 69, 174)
HSLhsl(260, 43%, 48%)
HSVhsv(260, 60%, 68%)
CMYKcmyk(40.2%, 60.3%, 0%, 31.8%)
CIE-LABlab(38.30, 38.99, -51.04)
CIE-LCHlch(38.30, 64.23, 307.37°)
OKLaboklab(48.46% 0.0681 -0.1453)
OKLCHoklch(48.46% 0.16 295.1)
XYZxyz(15.4750, 10.2550, 41.2003)
Luminance0.1026 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845AE #8BAE45
analogous
#4556AE #6845AE #9C45AE
triadic
#6845AE #AE6845 #45AE68
tetradic
#6845AE #AE4556 #8BAE45 #45AE9C
square
#6845AE #AE4556 #8BAE45 #45AE9C
split-complementary
#6845AE #AE9C45 #56AE45
monochromatic
#342256 #4E3482 #6845AE #896CC5 #AC97D6

Accessibility & contrast

On white

6.88
#6845AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#6845AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845AE
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845AE#FFFFFF#000000##FFFFFF
##6845AE1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB1
Deuteranopia (green-blind)
#1159AC
Tritanopia (blue-blind)
#565C73
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6845ae;
/* rgb */ color: rgb(104, 69, 174);
/* oklch */ color: oklch(48.5% 0.160 295.1);
Tailwind
colors: {
  custom: {
    50: '#987ac7',
    500: '#6845ae',
    950: '#000000',
  },
}
SCSS
$custom: #6845ae;
$custom-light: #987ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#6845ae",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 174
  },
  "hsl": {
    "h": 260,
    "s": 43.21,
    "l": 47.647
  },
  "oklch": {
    "l": 0.48462,
    "c": 0.16044,
    "h": 295.1
  },
  "luminance": 0.10255
}

Semantic roles & 50–950 ramp

primary
#6845AE
secondary
#B0C28D
accent
#D355A9
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6845AE

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

Preview Lab → · Contrast checker → · Palette generator →

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