#7870EF#7870EF

#7870EF is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.6% C 0.185 H 282.4°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#7870EF
RGBrgb(120, 112, 239)
HSLhsl(244, 80%, 69%)
HSVhsv(244, 53%, 94%)
CMYKcmyk(49.8%, 53.1%, 0%, 6.3%)
CIE-LABlab(53.83, 36.07, -63.27)
CIE-LCHlch(53.83, 72.83, 299.69°)
OKLaboklab(61.65% 0.0396 -0.1806)
OKLCHoklch(61.65% 0.185 282.4)
XYZxyz(29.1152, 21.8118, 84.3206)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870EF #E7EF70
analogous
#70A8EF #7870EF #B870EF
triadic
#7870EF #EF7870 #70EF78
tetradic
#7870EF #EF70A8 #E7EF70 #70EFB8
square
#7870EF #EF70A8 #E7EF70 #70EFB8
split-complementary
#7870EF #EFB870 #A8EF70
monochromatic
#2317CE #4439E9 #7870EF #ACA7F5 #E0DEFB

Accessibility & contrast

On white

3.92
#7870EF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#7870EF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870EF
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870EF#FFFFFF#000000##000000
##7870EF1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#2985F3
Deuteranopia (green-blind)
#1C7CEC
Tritanopia (blue-blind)
#4A8CA5
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #7870ef;
/* rgb */ color: rgb(120, 112, 239);
/* oklch */ color: oklch(61.6% 0.185 282.4);
Tailwind
colors: {
  custom: {
    50: '#a799f5',
    500: '#7870ef',
    950: '#000000',
  },
}
SCSS
$custom: #7870ef;
$custom-light: #a799f5;
$custom-dark: #000000;
JSON
{
  "hex": "#7870ef",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 239
  },
  "hsl": {
    "h": 243.78,
    "s": 79.874,
    "l": 68.824
  },
  "oklch": {
    "l": 0.61649,
    "c": 0.18491,
    "h": 282.4
  },
  "luminance": 0.21813
}

Semantic roles & 50–950 ramp

primary
#7870EF
secondary
#EEF0CB
accent
#DC09CF
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7870EF

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

Preview Lab → · Contrast checker → · Palette generator →

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