#7870F8#7870F8

#7870F8 is a light, vivid blue. Relative luminance 0.224; OKLCH L 62.3% C 0.197 H 281.7°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#7870F8
RGBrgb(120, 112, 248)
HSLhsl(244, 91%, 71%)
HSVhsv(244, 55%, 97%)
CMYKcmyk(51.6%, 54.8%, 0%, 2.7%)
CIE-LABlab(54.40, 38.77, -67.35)
CIE-LCHlch(54.40, 77.71, 299.93°)
OKLaboklab(62.26% 0.0398 -0.1926)
OKLCHoklch(62.26% 0.197 281.7)
XYZxyz(30.4780, 22.3570, 91.4981)
Luminance0.2236 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870F8 #F0F870
analogous
#70ACF8 #7870F8 #BC70F8
triadic
#7870F8 #F87870 #70F878
tetradic
#7870F8 #F870AC #F0F870 #70F8BC
square
#7870F8 #F870AC #F0F870 #70F8BC
split-complementary
#7870F8 #F8BC70 #ACF870
monochromatic
#180BE3 #4136F5 #7870F8 #AFAAFB #E3E2FE

Accessibility & contrast

On white

3.84
#7870F8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#7870F8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870F8
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870F8#FFFFFF#000000##000000
##7870F81.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1487FD
Deuteranopia (green-blind)
#007DF5
Tritanopia (blue-blind)
#438FA9
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7870f8;
/* rgb */ color: rgb(120, 112, 248);
/* oklch */ color: oklch(62.3% 0.197 281.7);
Tailwind
colors: {
  custom: {
    50: '#a899fb',
    500: '#7870f8',
    950: '#000000',
  },
}
SCSS
$custom: #7870f8;
$custom-light: #a899fb;
$custom-dark: #000000;
JSON
{
  "hex": "#7870f8",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 248
  },
  "hsl": {
    "h": 243.529,
    "s": 90.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.62263,
    "c": 0.1967,
    "h": 281.7
  },
  "luminance": 0.22359
}

Semantic roles & 50–950 ramp

primary
#7870F8
secondary
#F2F4CF
accent
#E600D8
background
#FAF9FF
surface
#F5F2FF
border
#CFCCD7
text
#110E17
muted
#807E85

Preview Lab

Preview with #7870F8

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

Preview Lab → · Contrast checker → · Palette generator →

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