#6845C8#6845C8

#6845C8 is a mid, vivid violet. Relative luminance 0.114; OKLCH L 50.4% C 0.193 H 290.0°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#6845C8
RGBrgb(104, 69, 200)
HSLhsl(256, 54%, 53%)
HSVhsv(256, 66%, 78%)
CMYKcmyk(48%, 65.5%, 0%, 21.6%)
CIE-LABlab(40.19, 46.29, -63.22)
CIE-LCHlch(40.19, 78.36, 306.21°)
OKLaboklab(50.44% 0.0659 -0.1811)
OKLCHoklch(50.44% 0.193 290)
XYZxyz(18.2594, 11.3687, 55.8647)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6845C8 #A5C845
analogous
#4563C8 #6845C8 #AA45C8
triadic
#6845C8 #C86845 #45C868
tetradic
#6845C8 #C84563 #A5C845 #45C8AA
square
#6845C8 #C84563 #A5C845 #45C8AA
split-complementary
#6845C8 #C8AA45 #63C845
monochromatic
#372171 #4E2FA0 #6845C8 #8E74D6 #B5A3E4

Accessibility & contrast

On white

6.41
#6845C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#6845C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6845C8
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6845C8#FFFFFF#000000##FFFFFF
##6845C81.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CC
Deuteranopia (green-blind)
#005CC5
Tritanopia (blue-blind)
#496580
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #6845c8;
/* rgb */ color: rgb(104, 69, 200);
/* oklch */ color: oklch(50.4% 0.193 290.0);
Tailwind
colors: {
  custom: {
    50: '#9b7bda',
    500: '#6845c8',
    950: '#000000',
  },
}
SCSS
$custom: #6845c8;
$custom-light: #9b7bda;
$custom-dark: #000000;
JSON
{
  "hex": "#6845c8",
  "rgb": {
    "r": 104,
    "g": 69,
    "b": 200
  },
  "hsl": {
    "h": 256.031,
    "s": 54.357,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5044,
    "c": 0.19273,
    "h": 290
  },
  "luminance": 0.11369
}

Semantic roles & 50–950 ramp

primary
#6845C8
secondary
#C2D198
accent
#DE4AB6
background
#FAF7FD
surface
#F3EEFB
border
#CDC9D4
text
#0F0915
muted
#7F7B83

Preview Lab

Preview with #6845C8

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

Preview Lab → · Contrast checker → · Palette generator →

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