#6851CC#6851CC

#6851CC is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.6% C 0.182 H 287.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#6851CC
RGBrgb(104, 81, 204)
HSLhsl(251, 55%, 56%)
HSVhsv(251, 60%, 80%)
CMYKcmyk(49%, 60.3%, 0%, 20%)
CIE-LABlab(43.04, 40.64, -60.91)
CIE-LCHlch(43.04, 73.22, 303.71°)
OKLaboklab(52.6% 0.0532 -0.1743)
OKLCHoklch(52.6% 0.182 287)
XYZxyz(19.5472, 13.1867, 58.6303)
Luminance0.1319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6851CC #B5CC51
analogous
#5177CC #6851CC #A651CC
triadic
#6851CC #CC6851 #51CC68
tetradic
#6851CC #CC5177 #B5CC51 #51CCA6
square
#6851CC #CC5177 #B5CC51 #51CCA6
split-complementary
#6851CC #CCA651 #77CC51
monochromatic
#35257E #4A33AD #6851CC #9180DA #BAB0E8

Accessibility & contrast

On white

5.77
#6851CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#6851CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6851CC
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6851CC#FFFFFF#000000##FFFFFF
##6851CC1.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#456E87
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #6851cc;
/* rgb */ color: rgb(104, 81, 204);
/* oklch */ color: oklch(52.6% 0.182 287.0);
Tailwind
colors: {
  custom: {
    50: '#9b83dc',
    500: '#6851cc',
    950: '#000000',
  },
}
SCSS
$custom: #6851cc;
$custom-light: #9b83dc;
$custom-dark: #000000;
JSON
{
  "hex": "#6851cc",
  "rgb": {
    "r": 104,
    "g": 81,
    "b": 204
  },
  "hsl": {
    "h": 251.22,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.52604,
    "c": 0.18223,
    "h": 287
  },
  "luminance": 0.13188
}

Semantic roles & 50–950 ramp

primary
#6851CC
secondary
#CCD6A3
accent
#DE4AC2
background
#FAF8FD
surface
#F3EFFB
border
#CDCAD4
text
#0F0A15
muted
#7F7C83

Preview Lab

Preview with #6851CC

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

Preview Lab → · Contrast checker → · Palette generator →

#6851CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva