#7870F5#7870F5

#7870F5 is a light, vivid blue. Relative luminance 0.222; OKLCH L 62.1% C 0.193 H 281.9°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#7870F5
RGBrgb(120, 112, 245)
HSLhsl(244, 87%, 70%)
HSVhsv(244, 54%, 96%)
CMYKcmyk(51%, 54.3%, 0%, 3.9%)
CIE-LABlab(54.21, 37.87, -66.00)
CIE-LCHlch(54.21, 76.09, 299.85°)
OKLaboklab(62.06% 0.0398 -0.1886)
OKLCHoklch(62.06% 0.193 281.9)
XYZxyz(30.0163, 22.1723, 89.0665)
Luminance0.2217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870F5 #EDF570
analogous
#70ABF5 #7870F5 #BA70F5
triadic
#7870F5 #F57870 #70F578
tetradic
#7870F5 #F570AB #EDF570 #70F5BA
square
#7870F5 #F570AB #EDF570 #70F5BA
split-complementary
#7870F5 #F5BA70 #ABF570
monochromatic
#1C0FDB #4237F1 #7870F5 #AEA9F9 #E4E2FD

Accessibility & contrast

On white

3.86
#7870F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#7870F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870F5
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870F5#FFFFFF#000000##000000
##7870F51.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D86FA
Deuteranopia (green-blind)
#017DF2
Tritanopia (blue-blind)
#458EA8
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #7870f5;
/* rgb */ color: rgb(120, 112, 245);
/* oklch */ color: oklch(62.1% 0.193 281.9);
Tailwind
colors: {
  custom: {
    50: '#a799f9',
    500: '#7870f5',
    950: '#000000',
  },
}
SCSS
$custom: #7870f5;
$custom-light: #a799f9;
$custom-dark: #000000;
JSON
{
  "hex": "#7870f5",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 245
  },
  "hsl": {
    "h": 243.609,
    "s": 86.928,
    "l": 70
  },
  "oklch": {
    "l": 0.62056,
    "c": 0.19279,
    "h": 281.9
  },
  "luminance": 0.22174
}

Semantic roles & 50–950 ramp

primary
#7870F5
secondary
#F1F3CE
accent
#E302D6
background
#FAF9FF
surface
#F4F2FF
border
#CECCD7
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7870F5

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

Preview Lab → · Contrast checker → · Palette generator →

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