#6845AF#6845AF

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

Color values

HEX#6845AF
RGBrgb(104, 69, 175)
HSLhsl(260, 43%, 48%)
HSVhsv(260, 61%, 69%)
CMYKcmyk(40.6%, 60.6%, 0%, 31.4%)
CIE-LABlab(38.37, 39.27, -51.53)
CIE-LCHlch(38.37, 64.78, 307.31°)
OKLaboklab(48.54% 0.068 -0.1467)
OKLCHoklch(48.54% 0.162 294.9)
XYZxyz(15.5729, 10.2941, 41.7156)
Luminance0.1029 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845AF #8CAF45
analogous
#4557AF #6845AF #9D45AF
triadic
#6845AF #AF6845 #45AF68
tetradic
#6845AF #AF4557 #8CAF45 #45AF9D
square
#6845AF #AF4557 #8CAF45 #45AF9D
split-complementary
#6845AF #AF9D45 #57AF45
monochromatic
#342257 #4E3483 #6845AF #896CC5 #AD98D6

Accessibility & contrast

On white

6.87
#6845AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#6845AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845AF
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845AF#FFFFFF#000000##FFFFFF
##6845AF1.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB2
Deuteranopia (green-blind)
#0E59AD
Tritanopia (blue-blind)
#565C73
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6845af;
/* rgb */ color: rgb(104, 69, 175);
/* oklch */ color: oklch(48.5% 0.162 294.9);
Tailwind
colors: {
  custom: {
    50: '#987ac8',
    500: '#6845af',
    950: '#000000',
  },
}
SCSS
$custom: #6845af;
$custom-light: #987ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#6845af",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 175
  },
  "hsl": {
    "h": 259.811,
    "s": 43.443,
    "l": 47.843
  },
  "oklch": {
    "l": 0.48535,
    "c": 0.1617,
    "h": 294.9
  },
  "luminance": 0.10294
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6845AF

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

Preview Lab → · Contrast checker → · Palette generator →

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