#6872F8#6872F8

#6872F8 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.5% C 0.197 H 275.7°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#6872F8
RGBrgb(104, 114, 248)
HSLhsl(236, 91%, 69%)
HSVhsv(236, 58%, 97%)
CMYKcmyk(58.1%, 54%, 0%, 2.7%)
CIE-LABlab(53.76, 34.60, -68.44)
CIE-LCHlch(53.76, 76.68, 296.82°)
OKLaboklab(61.5% 0.0197 -0.1962)
OKLCHoklch(61.5% 0.197 275.7)
XYZxyz(28.6640, 21.7529, 91.4770)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#6872F8 #F8EE68
analogous
#68BAF8 #6872F8 #A668F8
triadic
#6872F8 #F86872 #72F868
tetradic
#6872F8 #F868BA #F8EE68 #68F8A6
square
#6872F8 #F868BA #F8EE68 #68F8A6
split-complementary
#6872F8 #F8A668 #BAF868
monochromatic
#0A19DB #2E3BF5 #6872F8 #A2A9FB #DDDFFD

Accessibility & contrast

On white

3.92
#6872F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#6872F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #6872F8
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##6872F8#FFFFFF#000000##000000
##6872F81.003.925.355.35
#FFFFFF3.921.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#1287FD
Deuteranopia (green-blind)
#007BF5
Tritanopia (blue-blind)
#0091AA
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #6872f8;
/* rgb */ color: rgb(104, 114, 248);
/* oklch */ color: oklch(61.5% 0.197 275.7);
Tailwind
colors: {
  custom: {
    50: '#9f9afb',
    500: '#6872f8',
    950: '#000000',
  },
}
SCSS
$custom: #6872f8;
$custom-light: #9f9afb;
$custom-dark: #000000;
JSON
{
  "hex": "#6872f8",
  "rgb": {
    "r": 104,
    "g": 114,
    "b": 248
  },
  "hsl": {
    "h": 235.833,
    "s": 91.139,
    "l": 69.02
  },
  "oklch": {
    "l": 0.61502,
    "c": 0.19721,
    "h": 275.7
  },
  "luminance": 0.21755
}

Semantic roles & 50–950 ramp

primary
#6872F8
secondary
#F3F0C9
accent
#D600E6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #6872F8

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

Preview Lab → · Contrast checker → · Palette generator →

#6872F8 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva