#6845CE#6845CE

#6845CE is a mid, vivid violet. Relative luminance 0.117; OKLCH L 50.9% C 0.200 H 289.0°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#6845CE
RGBrgb(104, 69, 206)
HSLhsl(255, 58%, 54%)
HSVhsv(255, 67%, 81%)
CMYKcmyk(49.5%, 66.5%, 0%, 19.2%)
CIE-LABlab(40.66, 47.99, -65.94)
CIE-LCHlch(40.66, 81.55, 306.05°)
OKLaboklab(50.92% 0.0652 -0.1891)
OKLCHoklch(50.92% 0.2 289)
XYZxyz(18.9744, 11.6547, 59.6304)
Luminance0.1166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845CE #ABCE45
analogous
#4567CE #6845CE #AC45CE
triadic
#6845CE #CE6845 #45CE68
tetradic
#6845CE #CE4567 #ABCE45 #45CEAC
square
#6845CE #CE4567 #ABCE45 #45CEAC
split-complementary
#6845CE #CEAC45 #67CE45
monochromatic
#372079 #4C2DA9 #6845CE #8F75DB #B7A6E8

Accessibility & contrast

On white

6.30
#6845CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#6845CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845CE
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845CE#FFFFFF#000000##FFFFFF
##6845CE1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D2
Deuteranopia (green-blind)
#005CCB
Tritanopia (blue-blind)
#456784
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6845ce;
/* rgb */ color: rgb(104, 69, 206);
/* oklch */ color: oklch(50.9% 0.200 289.0);
Tailwind
colors: {
  custom: {
    50: '#9c7bde',
    500: '#6845ce',
    950: '#000000',
  },
}
SCSS
$custom: #6845ce;
$custom-light: #9c7bde;
$custom-dark: #000000;
JSON
{
  "hex": "#6845ce",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 206
  },
  "hsl": {
    "h": 255.328,
    "s": 58.298,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50922,
    "c": 0.19999,
    "h": 289
  },
  "luminance": 0.11656
}

Semantic roles & 50–950 ramp

primary
#6845CE
secondary
#C6D59A
accent
#E246BA
background
#FAF7FD
surface
#F4EEFB
border
#CEC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6845CE

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

Preview Lab → · Contrast checker → · Palette generator →

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