#7870EE#7870EE

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

Color values

HEX#7870EE
RGBrgb(120, 112, 238)
HSLhsl(244, 79%, 69%)
HSVhsv(244, 53%, 93%)
CMYKcmyk(49.6%, 52.9%, 0%, 6.7%)
CIE-LABlab(53.76, 35.78, -62.82)
CIE-LCHlch(53.76, 72.29, 299.66°)
OKLaboklab(61.58% 0.0395 -0.1793)
OKLCHoklch(61.58% 0.184 282.4)
XYZxyz(28.9678, 21.7529, 83.5447)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870EE #E6EE70
analogous
#70A7EE #7870EE #B770EE
triadic
#7870EE #EE7870 #70EE78
tetradic
#7870EE #EE70A7 #E6EE70 #70EEB7
square
#7870EE #EE70A7 #E6EE70 #70EEB7
split-complementary
#7870EE #EEB770 #A7EE70
monochromatic
#2418CB #4439E7 #7870EE #ACA7F5 #DFDDFB

Accessibility & contrast

On white

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

On black

5.35
#7870EE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870EE
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870EE#FFFFFF#000000##000000
##7870EE1.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)
#2B85F2
Deuteranopia (green-blind)
#1F7CEB
Tritanopia (blue-blind)
#4B8CA4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7870ee;
/* rgb */ color: rgb(120, 112, 238);
/* oklch */ color: oklch(61.6% 0.184 282.4);
Tailwind
colors: {
  custom: {
    50: '#a699f4',
    500: '#7870ee',
    950: '#000000',
  },
}
SCSS
$custom: #7870ee;
$custom-light: #a699f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7870ee",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 238
  },
  "hsl": {
    "h": 243.81,
    "s": 78.75,
    "l": 68.627
  },
  "oklch": {
    "l": 0.61582,
    "c": 0.1836,
    "h": 282.4
  },
  "luminance": 0.21754
}

Semantic roles & 50–950 ramp

primary
#7870EE
secondary
#EDF0CA
accent
#DB0ACE
background
#FAF9FF
surface
#F4F2FE
border
#CECCD6
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7870EE

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

Preview Lab → · Contrast checker → · Palette generator →

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