#7870EA#7870EA

#7870EA is a mid, vivid blue. Relative luminance 0.215; OKLCH L 61.3% C 0.178 H 282.7°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#7870EA
RGBrgb(120, 112, 234)
HSLhsl(244, 74%, 68%)
HSVhsv(244, 52%, 92%)
CMYKcmyk(48.7%, 52.1%, 0%, 8.2%)
CIE-LABlab(53.51, 34.59, -60.98)
CIE-LCHlch(53.51, 70.11, 299.56°)
OKLaboklab(61.32% 0.0393 -0.1739)
OKLCHoklch(61.32% 0.178 282.7)
XYZxyz(28.3867, 21.5205, 80.4841)
Luminance0.2152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870EA #E2EA70
analogous
#70A5EA #7870EA #B570EA
triadic
#7870EA #EA7870 #70EA78
tetradic
#7870EA #EA70A5 #E2EA70 #70EAB5
square
#7870EA #EA70A5 #E2EA70 #70EAB5
split-complementary
#7870EA #EAB570 #A5EA70
monochromatic
#281DC3 #463BE2 #7870EA #AAA5F2 #DDDBFA

Accessibility & contrast

On white

3.96
#7870EA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#7870EA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870EA
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870EA#FFFFFF#000000##000000
##7870EA1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#3184EE
Deuteranopia (green-blind)
#287CE7
Tritanopia (blue-blind)
#4E8BA2
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7870ea;
/* rgb */ color: rgb(120, 112, 234);
/* oklch */ color: oklch(61.3% 0.178 282.7);
Tailwind
colors: {
  custom: {
    50: '#a699f1',
    500: '#7870ea',
    950: '#000000',
  },
}
SCSS
$custom: #7870ea;
$custom-light: #a699f1;
$custom-dark: #000000;
JSON
{
  "hex": "#7870ea",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 234
  },
  "hsl": {
    "h": 243.934,
    "s": 74.39,
    "l": 67.843
  },
  "oklch": {
    "l": 0.61316,
    "c": 0.17829,
    "h": 282.7
  },
  "luminance": 0.21522
}

Semantic roles & 50–950 ramp

primary
#7870EA
secondary
#EBEEC8
accent
#D70FC9
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7870EA

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

Preview Lab → · Contrast checker → · Palette generator →

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