#6851EC#6851EC

#6851EC is a mid, highly saturated blue. Relative luminance 0.149; OKLCH L 55.1% C 0.222 H 283.1°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#6851EC
RGBrgb(104, 81, 236)
HSLhsl(249, 80%, 62%)
HSVhsv(249, 66%, 93%)
CMYKcmyk(55.9%, 65.7%, 0%, 7.5%)
CIE-LABlab(45.47, 50.12, -75.20)
CIE-LCHlch(45.47, 90.37, 303.68°)
OKLaboklab(55.13% 0.0503 -0.2163)
OKLCHoklch(55.13% 0.222 283.1)
XYZxyz(23.7870, 14.8826, 80.9598)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6851EC #D5EC51
analogous
#5188EC #6851EC #B551EC
triadic
#6851EC #EC6851 #51EC68
tetradic
#6851EC #EC5188 #D5EC51 #51ECB5
square
#6851EC #EC5188 #D5EC51 #51ECB5
split-complementary
#6851EC #ECB551 #88EC51
monochromatic
#2A13AF #381AE6 #6851EC #9888F2 #C8BFF8

Accessibility & contrast

On white

5.28
#6851EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#6851EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #6851EC
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6851EC#FFFFFF#000000##FFFFFF
##6851EC1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F1
Deuteranopia (green-blind)
#0066E9
Tritanopia (blue-blind)
#247998
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #6851ec;
/* rgb */ color: rgb(104, 81, 236);
/* oklch */ color: oklch(55.1% 0.222 283.1);
Tailwind
colors: {
  custom: {
    50: '#9f83f3',
    500: '#6851ec',
    950: '#000000',
  },
}
SCSS
$custom: #6851ec;
$custom-light: #9f83f3;
$custom-dark: #000000;
JSON
{
  "hex": "#6851ec",
  "rgb": {
    "r": 104,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 248.903,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.5513,
    "c": 0.22207,
    "h": 283.1
  },
  "luminance": 0.14884
}

Semantic roles & 50–950 ramp

primary
#6851EC
secondary
#E0E9B0
accent
#DD09BD
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#100B17
muted
#7F7C85

Preview Lab

Preview with #6851EC

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

Preview Lab → · Contrast checker → · Palette generator →

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