#6845D8#6845D8

#6845D8 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 51.7% C 0.212 H 287.5°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#6845D8
RGBrgb(104, 69, 216)
HSLhsl(254, 65%, 56%)
HSVhsv(254, 68%, 85%)
CMYKcmyk(51.9%, 68.1%, 0%, 15.3%)
CIE-LABlab(41.46, 50.83, -70.39)
CIE-LCHlch(41.46, 86.82, 305.84°)
OKLaboklab(51.75% 0.0637 -0.2021)
OKLCHoklch(51.75% 0.212 287.5)
XYZxyz(20.2281, 12.1562, 66.2330)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845D8 #B5D845
analogous
#456BD8 #6845D8 #B145D8
triadic
#6845D8 #D86845 #45D868
tetradic
#6845D8 #D8456B #B5D845 #45D8B1
square
#6845D8 #D8456B #B5D845 #45D8B1
split-complementary
#6845D8 #D8B145 #6BD845
monochromatic
#351C86 #4A27B9 #6845D8 #9178E3 #BAAAED

Accessibility & contrast

On white

6.12
#6845D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#6845D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845D8
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845D8#FFFFFF#000000##FFFFFF
##6845D81.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DC
Deuteranopia (green-blind)
#005ED5
Tritanopia (blue-blind)
#3D6B89
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #6845d8;
/* rgb */ color: rgb(104, 69, 216);
/* oklch */ color: oklch(51.7% 0.212 287.5);
Tailwind
colors: {
  custom: {
    50: '#9d7be5',
    500: '#6845d8',
    950: '#000000',
  },
}
SCSS
$custom: #6845d8;
$custom-light: #9d7be5;
$custom-dark: #000000;
JSON
{
  "hex": "#6845d8",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 216
  },
  "hsl": {
    "h": 254.286,
    "s": 65.333,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51747,
    "c": 0.21193,
    "h": 287.5
  },
  "luminance": 0.12157
}

Semantic roles & 50–950 ramp

primary
#6845D8
secondary
#CCDB9E
accent
#E840C0
background
#FAF7FE
surface
#F4EEFC
border
#CEC9D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #6845D8

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

Preview Lab → · Contrast checker → · Palette generator →

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