#6845CF#6845CF

#6845CF is a mid, highly saturated violet. Relative luminance 0.117; OKLCH L 51.0% C 0.201 H 288.9°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#6845CF
RGBrgb(104, 69, 207)
HSLhsl(255, 59%, 54%)
HSVhsv(255, 67%, 81%)
CMYKcmyk(49.8%, 66.7%, 0%, 18.8%)
CIE-LABlab(40.74, 48.27, -66.39)
CIE-LCHlch(40.74, 82.08, 306.02°)
OKLaboklab(51% 0.065 -0.1904)
OKLCHoklch(51% 0.201 288.9)
XYZxyz(19.0963, 11.7035, 60.2722)
Luminance0.1170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845CF #ACCF45
analogous
#4567CF #6845CF #AD45CF
triadic
#6845CF #CF6845 #45CF68
tetradic
#6845CF #CF4567 #ACCF45 #45CFAD
square
#6845CF #CF4567 #ACCF45 #45CFAD
split-complementary
#6845CF #CFAD45 #67CF45
monochromatic
#36207A #4C2CAB #6845CF #8F76DC #B7A6E8

Accessibility & contrast

On white

6.29
#6845CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#6845CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845CF
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845CF#FFFFFF#000000##FFFFFF
##6845CF1.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063D3
Deuteranopia (green-blind)
#005DCC
Tritanopia (blue-blind)
#446784
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #6845cf;
/* rgb */ color: rgb(104, 69, 207);
/* oklch */ color: oklch(51.0% 0.201 288.9);
Tailwind
colors: {
  custom: {
    50: '#9c7bdf',
    500: '#6845cf',
    950: '#000000',
  },
}
SCSS
$custom: #6845cf;
$custom-light: #9c7bdf;
$custom-dark: #000000;
JSON
{
  "hex": "#6845cf",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 207
  },
  "hsl": {
    "h": 255.217,
    "s": 58.974,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51004,
    "c": 0.2012,
    "h": 288.9
  },
  "luminance": 0.11704
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #6845CF

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

Preview Lab → · Contrast checker → · Palette generator →

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