#6845B2#6845B2

#6845B2 is a mid, vivid violet. Relative luminance 0.104; OKLCH L 48.8% C 0.165 H 294.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#6845B2
RGBrgb(104, 69, 178)
HSLhsl(259, 44%, 48%)
HSVhsv(259, 61%, 70%)
CMYKcmyk(41.6%, 61.2%, 0%, 30.2%)
CIE-LABlab(38.57, 40.10, -52.96)
CIE-LCHlch(38.57, 66.43, 307.13°)
OKLaboklab(48.75% 0.0679 -0.1509)
OKLCHoklch(48.75% 0.165 294.2)
XYZxyz(15.8708, 10.4133, 43.2846)
Luminance0.1041 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845B2 #8FB245
analogous
#4558B2 #6845B2 #9E45B2
triadic
#6845B2 #B26845 #45B268
tetradic
#6845B2 #B24558 #8FB245 #45B29E
square
#6845B2 #B24558 #8FB245 #45B29E
split-complementary
#6845B2 #B29E45 #58B245
monochromatic
#34235A #4E3486 #6845B2 #8A6EC7 #AE9AD8

Accessibility & contrast

On white

6.81
#6845B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#6845B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845B2
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845B2#FFFFFF#000000##FFFFFF
##6845B21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#0259B0
Tritanopia (blue-blind)
#545D75
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #6845b2;
/* rgb */ color: rgb(104, 69, 178);
/* oklch */ color: oklch(48.8% 0.165 294.2);
Tailwind
colors: {
  custom: {
    50: '#987aca',
    500: '#6845b2',
    950: '#000000',
  },
}
SCSS
$custom: #6845b2;
$custom-light: #987aca;
$custom-dark: #000000;
JSON
{
  "hex": "#6845b2",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 178
  },
  "hsl": {
    "h": 259.266,
    "s": 44.13,
    "l": 48.431
  },
  "oklch": {
    "l": 0.48754,
    "c": 0.16549,
    "h": 294.2
  },
  "luminance": 0.10414
}

Semantic roles & 50–950 ramp

primary
#6845B2
secondary
#B3C48F
accent
#D454AB
background
#F9F7FC
surface
#F2EEF8
border
#CCC9D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #6845B2

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

Preview Lab → · Contrast checker → · Palette generator →

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