#6871F5#6871F5

#6871F5 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 61.1% C 0.195 H 276.1°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#6871F5
RGBrgb(104, 113, 245)
HSLhsl(236, 88%, 68%)
HSVhsv(236, 58%, 96%)
CMYKcmyk(57.6%, 53.9%, 0%, 3.9%)
CIE-LABlab(53.32, 34.24, -67.48)
CIE-LCHlch(53.32, 75.67, 296.90°)
OKLaboklab(61.11% 0.0206 -0.1934)
OKLCHoklch(61.11% 0.195 276.1)
XYZxyz(28.0902, 21.3438, 89.0080)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6871F5 #F5EC68
analogous
#68B7F5 #6871F5 #A568F5
triadic
#6871F5 #F56871 #71F568
tetradic
#6871F5 #F568B7 #F5EC68 #68F5A5
square
#6871F5 #F568B7 #F5EC68 #68F5A5
split-complementary
#6871F5 #F5A568 #B7F568
monochromatic
#0E1BD5 #2F3BF1 #6871F5 #A1A7F9 #DBDDFD

Accessibility & contrast

On white

3.99
#6871F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#6871F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6871F5
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6871F5#FFFFFF#000000##000000
##6871F51.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1685FA
Deuteranopia (green-blind)
#007AF2
Tritanopia (blue-blind)
#0090A8
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #6871f5;
/* rgb */ color: rgb(104, 113, 245);
/* oklch */ color: oklch(61.1% 0.195 276.1);
Tailwind
colors: {
  custom: {
    50: '#9e99f9',
    500: '#6871f5',
    950: '#000000',
  },
}
SCSS
$custom: #6871f5;
$custom-light: #9e99f9;
$custom-dark: #000000;
JSON
{
  "hex": "#6871f5",
  "rgb": {
    "r": 104,
    "g": 113,
    "b": 245
  },
  "hsl": {
    "h": 236.17,
    "s": 87.578,
    "l": 68.431
  },
  "oklch": {
    "l": 0.6111,
    "c": 0.19452,
    "h": 276.1
  },
  "luminance": 0.21346
}

Semantic roles & 50–950 ramp

primary
#6871F5
secondary
#F2EFC7
accent
#D601E4
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #6871F5

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

Preview Lab → · Contrast checker → · Palette generator →

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