#6871E7#6871E7

#6871E7 is a mid, vivid blue. Relative luminance 0.205; OKLCH L 60.1% C 0.176 H 276.5°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#6871E7
RGBrgb(104, 113, 231)
HSLhsl(236, 73%, 66%)
HSVhsv(236, 55%, 91%)
CMYKcmyk(55%, 51.1%, 0%, 9.4%)
CIE-LABlab(52.42, 29.79, -61.12)
CIE-LCHlch(52.42, 67.99, 295.99°)
OKLaboklab(60.15% 0.0198 -0.1747)
OKLCHoklch(60.15% 0.176 276.5)
XYZxyz(26.0332, 20.5211, 78.1749)
Luminance0.2052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871E7 #E7DE68
analogous
#68B0E7 #6871E7 #9E68E7
triadic
#6871E7 #E76871 #71E768
tetradic
#6871E7 #E768B0 #E7DE68 #68E79E
square
#6871E7 #E768B0 #E7DE68 #68E79E
split-complementary
#6871E7 #E79E68 #B0E768
monochromatic
#1D28B7 #333FDF #6871E7 #9DA3EF #D2D4F8

Accessibility & contrast

On white

4.11
#6871E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#6871E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871E7
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871E7#FFFFFF#000000##000000
##6871E71.004.115.105.10
#FFFFFF4.111.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3182EB
Deuteranopia (green-blind)
#1B78E5
Tritanopia (blue-blind)
#258CA1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #6871e7;
/* rgb */ color: rgb(104, 113, 231);
/* oklch */ color: oklch(60.1% 0.176 276.5);
Tailwind
colors: {
  custom: {
    50: '#9c99ef',
    500: '#6871e7',
    950: '#000000',
  },
}
SCSS
$custom: #6871e7;
$custom-light: #9c99ef;
$custom-dark: #000000;
JSON
{
  "hex": "#6871e7",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 235.748,
    "s": 72.571,
    "l": 65.686
  },
  "oklch": {
    "l": 0.60145,
    "c": 0.17583,
    "h": 276.5
  },
  "luminance": 0.20523
}

Semantic roles & 50–950 ramp

primary
#6871E7
secondary
#EBE8C0
accent
#C711D5
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#0F0E16
muted
#7F7E84

Preview Lab

Preview with #6871E7

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

Preview Lab → · Contrast checker → · Palette generator →

#6871E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva