#7870ED#7870ED

#7870ED is a mid, vivid blue. Relative luminance 0.217; OKLCH L 61.5% C 0.182 H 282.5°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#7870ED
RGBrgb(120, 112, 237)
HSLhsl(244, 78%, 68%)
HSVhsv(244, 53%, 93%)
CMYKcmyk(49.4%, 52.7%, 0%, 7.1%)
CIE-LABlab(53.70, 35.48, -62.36)
CIE-LCHlch(53.70, 71.74, 299.64°)
OKLaboklab(61.52% 0.0395 -0.1779)
OKLCHoklch(61.52% 0.182 282.5)
XYZxyz(28.8213, 21.6943, 82.7731)
Luminance0.2170 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7870ED #E5ED70
analogous
#70A6ED #7870ED #B670ED
triadic
#7870ED #ED7870 #70ED78
tetradic
#7870ED #ED70A6 #E5ED70 #70EDB6
square
#7870ED #ED70A6 #E5ED70 #70EDB6
split-complementary
#7870ED #EDB670 #A6ED70
monochromatic
#2519C9 #453AE6 #7870ED #ABA6F4 #DFDDFB

Accessibility & contrast

On white

3.93
#7870ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#7870ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7870ED
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7870ED#FFFFFF#000000##000000
##7870ED1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C85F1
Deuteranopia (green-blind)
#217CEA
Tritanopia (blue-blind)
#4C8CA4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #7870ed;
/* rgb */ color: rgb(120, 112, 237);
/* oklch */ color: oklch(61.5% 0.182 282.5);
Tailwind
colors: {
  custom: {
    50: '#a699f4',
    500: '#7870ed',
    950: '#000000',
  },
}
SCSS
$custom: #7870ed;
$custom-light: #a699f4;
$custom-dark: #000000;
JSON
{
  "hex": "#7870ed",
  "rgb": {
    "r": 120,
    "g": 112,
    "b": 237
  },
  "hsl": {
    "h": 243.84,
    "s": 77.64,
    "l": 68.431
  },
  "oklch": {
    "l": 0.61515,
    "c": 0.18228,
    "h": 282.5
  },
  "luminance": 0.21696
}

Semantic roles & 50–950 ramp

primary
#7870ED
secondary
#EDEFCA
accent
#DA0CCD
background
#FAF9FE
surface
#F4F2FD
border
#CECCD5
text
#100E17
muted
#7F7E85

Preview Lab

Preview with #7870ED

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

Preview Lab → · Contrast checker → · Palette generator →

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