#6845AC#6845AC

#6845AC is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.3% C 0.158 H 295.6°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#6845AC
RGBrgb(104, 69, 172)
HSLhsl(260, 43%, 47%)
HSVhsv(260, 60%, 67%)
CMYKcmyk(39.5%, 59.9%, 0%, 32.5%)
CIE-LABlab(38.16, 38.44, -50.08)
CIE-LCHlch(38.16, 63.13, 307.51°)
OKLaboklab(48.32% 0.0681 -0.1424)
OKLCHoklch(48.32% 0.158 295.6)
XYZxyz(15.2815, 10.1776, 40.1811)
Luminance0.1018 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845AC #89AC45
analogous
#4556AC #6845AC #9C45AC
triadic
#6845AC #AC6845 #45AC68
tetradic
#6845AC #AC4556 #89AC45 #45AC9C
square
#6845AC #AC4556 #89AC45 #45AC9C
split-complementary
#6845AC #AC9C45 #56AC45
monochromatic
#332255 #4E3380 #6845AC #896BC4 #AC96D5

Accessibility & contrast

On white

6.92
#6845AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#6845AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845AC
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845AC#FFFFFF#000000##FFFFFF
##6845AC1.006.923.046.92
#FFFFFF6.921.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BAF
Deuteranopia (green-blind)
#1658AA
Tritanopia (blue-blind)
#575B72
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #6845ac;
/* rgb */ color: rgb(104, 69, 172);
/* oklch */ color: oklch(48.3% 0.158 295.6);
Tailwind
colors: {
  custom: {
    50: '#987ac5',
    500: '#6845ac',
    950: '#000000',
  },
}
SCSS
$custom: #6845ac;
$custom-light: #987ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#6845ac",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 172
  },
  "hsl": {
    "h": 260.388,
    "s": 42.739,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48319,
    "c": 0.1579,
    "h": 295.6
  },
  "luminance": 0.10178
}

Semantic roles & 50–950 ramp

primary
#6845AC
secondary
#AFC18C
accent
#D355A8
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6845AC

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

Preview Lab → · Contrast checker → · Palette generator →

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