#6845D3#6845D3

#6845D3 is a mid, highly saturated violet. Relative luminance 0.119; OKLCH L 51.3% C 0.206 H 288.2°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#6845D3
RGBrgb(104, 69, 211)
HSLhsl(255, 62%, 55%)
HSVhsv(255, 67%, 83%)
CMYKcmyk(50.7%, 67.3%, 0%, 17.3%)
CIE-LABlab(41.06, 49.41, -68.17)
CIE-LCHlch(41.06, 84.20, 305.93°)
OKLaboklab(51.33% 0.0644 -0.1956)
OKLCHoklch(51.33% 0.206 288.2)
XYZxyz(19.5915, 11.9015, 62.8803)
Luminance0.1190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845D3 #B0D345
analogous
#4569D3 #6845D3 #AF45D3
triadic
#6845D3 #D36845 #45D368
tetradic
#6845D3 #D34569 #B0D345 #45D3AF
square
#6845D3 #D34569 #B0D345 #45D3AF
split-complementary
#6845D3 #D3AF45 #69D345
monochromatic
#361E7F #4B2AB1 #6845D3 #9076DF #B8A8EA

Accessibility & contrast

On white

6.21
#6845D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#6845D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845D3
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845D3#FFFFFF#000000##FFFFFF
##6845D31.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D7
Deuteranopia (green-blind)
#005DD0
Tritanopia (blue-blind)
#416986
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #6845d3;
/* rgb */ color: rgb(104, 69, 211);
/* oklch */ color: oklch(51.3% 0.206 288.2);
Tailwind
colors: {
  custom: {
    50: '#9c7be2',
    500: '#6845d3',
    950: '#000000',
  },
}
SCSS
$custom: #6845d3;
$custom-light: #9c7be2;
$custom-dark: #000000;
JSON
{
  "hex": "#6845d3",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 211
  },
  "hsl": {
    "h": 254.789,
    "s": 61.739,
    "l": 54.902
  },
  "oklch": {
    "l": 0.51332,
    "c": 0.20599,
    "h": 288.2
  },
  "luminance": 0.11902
}

Semantic roles & 50–950 ramp

primary
#6845D3
secondary
#C9D89C
accent
#E543BD
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0915
muted
#7F7B84

Preview Lab

Preview with #6845D3

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

Preview Lab → · Contrast checker → · Palette generator →

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